Loading

Pquad

processing

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.

Link to original Processing doc

Pquad is available since version 1.0.0.

See also

Signatures

Examples

// @preview image 100 100 '2D2' PGraphics 255 Pbackground 0xff0000ff Pstroke //blue 0x2fff0000 Pfill //red transparent 50 10 30 100 50 50 70 100 Pquad Pencode