DrawingImmediate.Quad
Draws quads.
Syntax
DrawingImmediate.Quad(a: any, b: any, c: any, d: any, color: Color3, filled?: any, thickness?: number) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
a | any | The a value used by the call. |
b | any | The b value used by the call. |
c | any | The c value used by the call. |
d | any | The d value used by the call. |
color | Color3 | The color value used by the call. |
filled? | any | The filled value used by the call. |
thickness? | number | The thickness value used by the call. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
DrawingImmediate.Quad is part of the DrawingImmediate library. Immediate drawing runs inside a paint callback registered with DrawingImmediate.GetPaint(); primitives are emitted for the current frame only.
The operation is performed immediately using the arguments supplied at the call site.
The aliases FilledQuad(a, b, c, d, color) resolve to the same implementation.
Example
-- inside a DrawingImmediate.GetPaint():Connect callback
DrawingImmediate.Quad(Vector2.new(10, 10), Vector2.new(110, 10), Vector2.new(90, 60), Vector2.new(30, 60), Color3.new(1, 1, 1), true, 2)
DrawingImmediate.FilledQuad(Vector2.new(150, 10), Vector2.new(250, 10), Vector2.new(230, 60), Vector2.new(170, 60), Color3.new(1, 0, 1))
Notes
- Aliases:
FilledQuad(a, b, c, d, color). - Draw calls must run inside a callback registered with DrawingImmediate.GetPaint().