-
Notifications
You must be signed in to change notification settings - Fork 5
CleanSegment
Juju Adams edited this page Mar 22, 2021
·
4 revisions
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:
Returns: N/A (undefined
)
Name | Datatype | Purpose |
---|---|---|
None |
Returns: self
Name | Datatype | Purpose |
---|---|---|
color |
24-bit color | Color of the shape |
alpha |
number | Alpha value of the shape |
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 |
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 |
@jujuadams 2020