Yuari
Documentation
Docs/Drawing

Drawing

Persistent drawing objects, fonts and render properties.

Creates a Line, Text, Circle, Square, Triangle, Quad or Image object.

local box = Drawing.new("Square")
box.Size = Vector2.new(120, 80)
box.Position = Vector2.new(100, 100)
box.Color = Color3.new(1, 1, 1)
box.Visible = true

Font constants: UI, System, Plex, Monospace.

local label = Drawing.new("Text")
label.Text = "Yuari"
label.Font = Drawing.Fonts.Monospace
label.Visible = true

Removes a drawing object.

local box = Drawing.new("Square")
box:Remove()
local line = Drawing.new("Line")
line:Destroy()

Removes every drawing object.

cleardrawcache()

Reads or writes drawing render properties and checks render objects.

local line = Drawing.new("Line")
print(isrenderobj(line))
print(getrenderproperty(line, "Visible"))
setrenderproperty(line, "Visible", true)

Common properties

PropertyApplies toDescription
VisibleAllVisibility.
TransparencyAll0-1 alpha.
ZIndexAllDraw order.
ThicknessLine, Circle, Triangle, Quad, RectangleStroke width.
ColorAllColor3 value.
From / ToLineEndpoints.
Text / Size / Center / Outline / OutlineColor / Font / TextBoundsTextText styling and bounds.
PositionText, Circle, Square, ImagePosition.
Radius / NumSides / FilledCircleCircle geometry.
Size / FilledSquareRectangle geometry.
PointA ... PointD / FilledTriangle, QuadVertices.
Rounding / Rotation / Data / Uri / UrlImageImage geometry and source.