Static p5_sys::global::quad[][src]

pub static quad: QuadInternalType
Expand description

Draws a quad on the canvas. A quad is a quadrilateral, a four sided polygon. It is similar to a rectangle, but the angles between its edges are not constrained to ninety degrees. The first pair of parameters (x1,y1) sets the first vertex and the subsequent pairs should proceed clockwise or counter-clockwise around the defined shape. z-arguments only work when quad() is used in WEBGL mode.

Examples

quad(38, 31, 86, 20, 69, 63, 30, 76);

Overloads

x1 the x-coordinate of the first point

y1 the y-coordinate of the first point

x2 the x-coordinate of the second point

y2 the y-coordinate of the second point

x3 the x-coordinate of the third point

y3 the y-coordinate of the third point

x4 the x-coordinate of the fourth point

y4 the y-coordinate of the fourth point


x1 the x-coordinate of the first point

y1 the y-coordinate of the first point

z1 the z-coordinate of the first point

x2 the x-coordinate of the second point

y2 the y-coordinate of the second point

z2 the z-coordinate of the second point

x3 the x-coordinate of the third point

y3 the y-coordinate of the third point

z3 the z-coordinate of the third point

x4 the x-coordinate of the fourth point

y4 the y-coordinate of the fourth point

z4 the z-coordinate of the fourth point