Skip to content

CleanRing

Juju Adams edited this page Jun 23, 2021 · 9 revisions

 

CleanRing(x, y, innerRadius, outerRadius, angleStart, angleEnd)

Returns: Ring struct

Name Datatype Purpose
x number x-coordinate of the ring's center
y number y-coordinate of the ring's center
innerRadius number Inner radius of the ring, in pixels
outerRadius number Outer radius of the ring, in pixels
angleStart number Angular position where the body of the ring starts, in degrees
angleEnd number Angular position where the body of the ring ends, in degrees

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

 

Ring structs have the following methods:

 

.Draw()

Returns: N/A (undefined)

Name Datatype 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

 

.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