DrawingImmediate.Quad
Draws a quadrilateral outline during the current paint callback.
Must run inside a GetPaint signal callback. This returns no retained object; redraw on every paint and disconnect the callback to stop drawing.
DrawingImmediate.Quad(a: Vector2, b: Vector2, c: Vector2, d: Vector2, color: Color3, opacity: number, thickness: number): ()Parameters
| Parameter | Type | Description |
|---|---|---|
a | Vector2 | First point. |
b | Vector2 | Second point. |
c | Vector2 | Third point. |
d | Vector2 | Fourth point. |
color | Color3 | Stroke color. |
opacity | number | 0 is invisible; 1 is opaque. Values are clamped. |
thickness | number | Stroke thickness. |
Errors: Calling outside a paint callback or supplying incompatible argument types raises an error.
