Yuari
Documentation
Docs/DrawingImmediate/DrawingImmediate.Quad

DrawingImmediate.Quad

Draws quads.

Syntax

DrawingImmediate.Quad(a: any, b: any, c: any, d: any, color: Color3, filled?: any, thickness?: number) -> nil

Parameters

ParameterTypeDescription
aanyThe a value used by the call.
banyThe b value used by the call.
canyThe c value used by the call.
danyThe d value used by the call.
colorColor3The color value used by the call.
filled?anyThe filled value used by the call.
thickness?numberThe thickness value used by the call.

Returns

TypeDescription
nilThis 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().