Skip to content

CleanSegment

Juju Adams edited this page Mar 22, 2021 · 4 revisions

 

CleanSegment(x, y, radius, angleStart, angleEnd)

Returns: Segment struct

Name Datatype Purpose
x number x-coordinate of the segment's center
y number y-coordinate of the segment's center
radius number Radius of the segment, in pixels
angleStart number Start angle for the visible portion of the segment, in degrees
angleEnd number End angle for the visible portion of the segment, in degrees

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

 

Segment 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

 

.Rounding(radius)

Returns: self

Name Datatype Purpose
radius number Radius of the rounding on corners, in pixels. A value equal to or less than 0 removes all rounding