-
Notifications
You must be signed in to change notification settings - Fork 6
CleanLine
Juju Adams edited this page Mar 22, 2021
·
8 revisions
Returns: Line struct
Name | Datatype | Purpose |
---|---|---|
x1 |
number | Start x-coordinate |
y1 |
number | Start y-coordinate |
x2 |
number | End x-coordinate |
y2 |
number | End y-coordinate |
N.B. A shape will only draw when you call the .Draw()
method.
Lines 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 line |
alpha |
number | Alpha value of the line |
Returns: self
Name | Datatype | Purpose |
---|---|---|
color1 |
24-bit color | Color of the start of the line |
alpha1 |
number | Alpha value of the start of the line |
color2 |
24-bit color | Color of the end of the line |
alpha2 |
number | Alpha value of the end of the line |
Returns: self
Name | Datatype | Purpose |
---|---|---|
pixels |
number | Width of the line |
Returns: self
Name | Datatype | Purpose |
---|---|---|
startType |
string | Cap type for the start of the line, either "none" , "square" , or "round"
|
endType |
string | Cap type for the end of the line, either "none" , "square" , or "round"
|
@jujuadams 2020