Drawing Objects
The class which all drawing objects will inherit.
Visible
boolean
Whether the drawing is visible. Defaults to false
.
ZIndex
number
Determines the order in which a Drawing renders relative to others.
Transparency
number
The opacity of the drawing (1 - opaque, 0 - transparent).
Color
Color3
The color of the drawing.
__OBJECT_EXISTS
boolean
Whether the object exists.
Destroy(): ()
function
Destroys the drawing.
Line
Renders a line starting at From
and ending at To
.
From
Vector2
The starting point of the line.
To
Vector2
The ending point of the line.
Thickness
number
The thickness of the line.
Text
Renders text at Position
.
Text
string
The text to render.
TextBounds
🔒 Vector2
The size of the text. Cannot be set.
Font
Drawing.Font
The font to use.
Size
number
The size of the text.
Position
Vector2
The position of the text.
Center
boolean
Whether the text should be centered horizontally.
Outline
boolean
Whether the text should be outlined.
OutlineColor
Color3
The color of the outline.
Image
Draws the image data to the screen. Data
must be the raw image data.
Data
string
The raw image data of the file. You can use readfile
or another method to read the raw bytecode of the image.
Size
Vector2
The size of the image.
Position
Vector2
The position of the image.
Rounding
number
The rounding of the image.
Circle
Draws a circle that is centered at Position
.
NumSides
number
The sides number of the circle.
Radius
number
The radius of the circle.
Position
Vector2
The center position of the circle.
Thickness
number
If Filled
is false, specifies the thickness of the outline.
Filled
boolean
Whether the circle should be filled.
Square
Draws a rectangle starting at Position
and ending at Position
+ Size
.
Size
Vector2
The size of the square.
Position
Vector2
The top-left corner position of the square.
Thickness
number
If Filled
is false, specifies the thickness of the outline.
Filled
boolean
Whether the square should be filled.
Quad
Draws a four-sided figure connecting to each of the four points.
PointA
Vector2
The first point.
PointB
Vector2
The second point.
PointC
Vector2
The third point.
PointD
Vector2
The fourth point.
Thickness
number
If Filled
is false, specifies the thickness of the outline.
Filled
boolean
Whether the quad should be filled.
Triangle
Draws a triangle connecting to each of the three points.
PointA
Vector2
The first point.
PointB
Vector2
The second point.
PointC
Vector2
The third point.
Thickness
number
If Filled
is false, specifies the thickness of the outline.
Filled
boolean
Whether the triangle should be filled.
Example image
Example __OBJECT_EXISTS
Last updated