# Drawing.new("Square") 🟧

Draws a rectangle (or square) on the screen.

# Key Properties

Property Type Description
Filled boolean If true, fills the square with Color. If false, draws outline.
Thickness number The thickness of the outline if Filled is false.

# Common Properties

Uses common properties like Visible, Color, Transparency, Position, Size, ZIndex. See Common Properties.

# Example

-- Example 1: Filled Red Square
local filledSquare = Drawing.new("Square")
filledSquare.Visible = true
filledSquare.Filled = true
filledSquare.Color = Color3(1, 0, 0) -- Red
filledSquare.Position = Vector2(300, 100)
filledSquare.Size = Vector2(50, 50)
filledSquare.ZIndex = 1

-- Example 2: Green Outline Square
local outlineSquare = Drawing.new("Square")
outlineSquare.Visible = true
outlineSquare.Filled = false -- Draw outline
outlineSquare.Color = Color3(0, 1, 0) -- Green
outlineSquare.Thickness = 2
outlineSquare.Position = Vector2(400, 100)
outlineSquare.Size = Vector2(60, 40) -- Rectangle
outlineSquare.ZIndex = 1

-- filledSquare:Remove()
-- outlineSquare:Remove()