Class: Square

Static Methods


Square Square.new()

Properties


number Thickness

Determines the thickness of a Square.

Vector2 Size

Determines the size of a Square.

Vector2 Position

Determines the position of a Square.

bool Filled

Determines whether a Square 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 Square:Remove()

Disables a DrawEntry.

void Square:Destroy()

An alias for Remove.

void Square:MoveToFront()

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

void Square:MoveToBack()

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