Class: Triangle

Static Methods


Triangle Triangle.new()

Properties


number Thickness

Determines a Triangle's thickness.

Vector2 PointA

The position of a Triangle's first point.

Vector2 PointB

The position of a Triangle's second point.

Vector2 PointC

The position of a Triangle's third point.

bool Filled

Determines whether a Triangle is filled.

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 Triangle:Remove()

Disables a DrawEntry.

void Triangle:Destroy()

An alias for Remove.

void Triangle:MoveToFront()

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

void Triangle:MoveToBack()

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