Difference between revisions of "Gb.display.drawCircleHelper"

From Gamebuino Wiki
Jump to: navigation, search
(Creation)
 
(Parameters: corrected typo)
 
Line 11: Line 11:
 
* x: horizontal coordinate of the centre of the circle.
 
* x: horizontal coordinate of the centre of the circle.
 
* y: vertical coordinate of the centre of the circle.  
 
* y: vertical coordinate of the centre of the circle.  
* w: radius of the circle.
+
* r: radius of the circle.
 
* corner: which corner to draw -  
 
* corner: which corner to draw -  
 
** 1: top left
 
** 1: top left

Latest revision as of 2016-11-30T20:24:35

Description

Draws part of 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.drawCircleHelper(x, y, r, corner);

Parameters

  • x: horizontal coordinate of the centre of the circle.
  • y: vertical coordinate of the centre of the circle.
  • r: radius of the circle.
  • corner: which corner to draw -
    • 1: top left
    • 2: top right
    • 4: bottom right
    • 8: bottom left

Returns

none

Example

See also