Skip to content

Drawing

Drawing New

<object> Drawing.new(<string> type)

Creates a new drawing object wiht type. Returns the object.

Fonts

<table> Drawing.Fonts(<void>)

Returns a table populated with available fonts.

Font Number
UI 0
System 1
Plex 2
Monospace 3

Base Properties

  • bool Visible
  • void Remove
  • Color3 Color

Note

Every class inherits functions and properties from this class.

Types:


Line

  • number Transparency
  • number Thickness
  • Vector2 From
  • Vector2 To

Note

Transparency here is opposite to roblox

Text

  • string Text
  • number Transparency
  • number Size
  • bool Center
  • bool Outline
  • Color3 OutlineColor
  • Vector2 Position
  • Vector2 TextBounds [readonly]
  • number Font

Circle

  • number Transparency
  • number Thickness
  • number NumSides
  • number Radius
  • bool Filled
  • Vector2 Position

Square

  • number Transparency
  • number Thickness
  • Vector2 Size
  • Vector2 Position
  • bool Filled

Triangle

  • number Transparency
  • number Thickness
  • Vector2 PointA
  • Vector2 PointB
  • Vector2 PointC
  • bool Filled


Example

local line = Drawing.new("Line")
line.Visible = true
line.From = Vector2.new(0,0)
line.To = Vector2.new(200,200)
line.Color = Color3.fromRGB(255,255,255)
line.Thickness = 2
line.Transparency = 1
line:Remove() --Nothing will appear since its getting removed straight away.