#
Drawing library 🎨
The Drawing
library allows you to create and manage 2D graphical elements directly on the screen. This is useful for creating custom UI, ESP (Extra Sensory Perception) elements, or other visual overlays.
#
Core Concept
- Create: You create a drawing object using
Drawing.new(type)
, wheretype
is a string like"Text"
,"Line"
,"Circle"
, etc. - Configure: You set properties on the returned object (e.g.,
myLine.Visible = true
,myText.Color = Color3(1, 0, 0)
). - Manage: The object draws automatically based on its properties. You can change properties dynamically.
- Remove: When you no longer need the drawing, call the
:Remove()
method on the object to clean it up (e.g.,myCircle:Remove()
).
-- Example: Create a simple red line
local line = Drawing.new("Line")
line.From = Vector2(10, 10)
line.To = Vector2(100, 100)
line.Color = Color3(1, 0, 0) -- Red
line.Thickness = 2
line.Visible = true
-- line:Remove()
#
Available Drawing Types
Select a drawing type below to see its specific properties and examples:
- Common Properties: Properties shared by most types.
- Text 📄
- Line 📏
- Square 🟧
- Circle ⚪
- Quad
- Triangle 🔺
- Image 🖼️
Remember: You need Color3()
and Vector2()
constructors available in your environment.