Creates a drawing object of the given type and returns it. Set its properties to position and style it; it renders every frame while Visible is true. Call :Destroy() (or :Remove()) on it when you are done, or clear everything at once with cleardrawcache. Every object shares Visible, ZIndex, Transparency, and Color. Each type adds its own:
  • Line: Thickness, From, To.
  • Square: Position, Size, Thickness, Filled, Rounding.
  • Circle: Position, Radius, NumSides, Thickness, Filled.
  • Triangle: PointA, PointB, PointC, Thickness, Filled.
  • Quad: PointA, PointB, PointC, PointD, Thickness, Filled.
  • Text: Text, Size, Center, Outline, OutlineColor, Font, Position, and read-only TextBounds.
  • Image: Data, Position, Size, Rounding.

Parameters

string
required
One of Line, Circle, Square, Triangle, Text, Image, Quad.

Returns

Drawing
A new drawing object.

Example

Errors