Skip to content

CleanCircle

Juju Adams edited this page Mar 11, 2021 · 10 revisions

CleanCircle(x, y, radius)

Returns: Circle struct

Argument Name Purpose
0 x x-coordinate of the circle's center
1 y y-coordinate of the circle's center
2 radius Radius of the circle, in pixels

N.B. A shape will only draw when you call the .Draw() method.

 

Circles have the following methods:

 

.Draw()

Returns: N/A (undefined)

Argument Name Purpose
None

 

.Blend(color, alpha)

Returns: self

Name Datatype Purpose
color 24-bit color Color of the shape
alpha number Alpha value of the shape

 

.BlendRadial(colorInner, alphaInner, colorOuter, alphaOuter)

Returns: self

Name Datatype Purpose
colorInner 24-bit color Inner color of the Circle
alphaInner number Inner alpha value of the circle
colorOuter 24-bit color Outer color of the Circle
alphaOuter number Outer alpha value of the circle

 

.Border(thickness, color, alpha)

Returns: self

Name Datatype Purpose
thickness number Width of the border, in pixels
color 24-bit color Color of the border
alpha number Alpha of the border