Skip to main content

renderer.circle

Draws a filled circle on the screen

renderer.circle(x: number, y: number, r: number, g: number, b: number, a: number, radius: number, start_degrees: number, percentage: number)

Arguments

NameDescriptionType
xX center positionnumber
yY center positionnumber
rRed color component (0 to 255)number
gGreen color component (0 to 255)number
bBlue color component (0 to 255)number
aAlpha (opacity) component (0 to 255)number
radiusRadius of the circle in pixels.number
start_degrees0 is the right side, 90 is the bottom, 180 is the left, 270 is the top.number
percentageMust be within [0.0-1.0]. 1.0 is a full circle, 0.5 is a half circle, etc.number