Difference between revisions of "Gb.display.drawCircle"

From Gamebuino Wiki
Jump to: navigation, search
(Creation)
 
m (Spelling)
Line 2: Line 2:
 
__NOTOC__
 
__NOTOC__
 
== Description ==
 
== Description ==
Draws circle at a specified location. The color used is defined using <code>[[gb.display.setColor]]()</code>.
+
Draws a circle at a specified location. The color used is defined using <code>[[gb.display.setColor]]()</code>.
 
If you specify values that cause parts of the circle to be off screen, then they will not be rendered.
 
If you specify values that cause parts of the circle to be off screen, then they will not be rendered.
  

Revision as of 2014-08-05T01:07:44

Description

Draws a circle at a specified location. The color used is defined using gb.display.setColor(). If you specify values that cause parts of the circle to be off screen, then they will not be rendered.

Syntax

gb.display.drawCircle(x, y, r);

Parameters

  • x: horizontal coordinate of the centre of the circle.
  • y: vertical coordinate of the centre of the circle.
  • w: radius of the circle.

Returns

none

Example

See also