Class: Line

Static Methods


Line Line.new()

Properties


float Thickness

Determines the thickness of a Line in pixels.

Vector2 From

Determines the starting position of a Line.

Vector2 To

Determines the end position of a Line.

Inherited from DrawEntry:
bool Visible

Determines whether a DrawEntry will be rendered.

int ZIndex

Determines the order in which a DrawEntry is rendered relative to other GUIs.

float Transparency

A V2-era misnomer and now alias for 'Opacity'. Deprecated.

float Opacity

A value between 0 and 1 that indicates the opacity of a DrawEntry, where 0 is fully transparent and 1 is fully opaque.

Color3 Color

Determines the color of a DrawEntry.

Vector3 ColorVec3 [writeonly]

Used to set Color via a Vector3. Write-only.

Methods


Inherited from DrawEntry:
void Line:Remove()

Disables a DrawEntry.

void Line:Destroy()

An alias for Remove.

void Line:MoveToFront()

Moves a DrawEntry to the front of the current ZIndex's draw list.

void Line:MoveToBack()

Moves a DrawEntry to the back of the current ZIndex's draw list.