colour.plotting.quad¶
-
colour.plotting.
quad
(plane='xy', origin=None, width=1, height=1, depth=0)[source]¶ Returns the vertices of a quad geometric element in counter-clockwise order.
Parameters: - plane (array_like, optional) – {‘xy’, ‘xz’, ‘yz’}, Construction plane of the quad.
- origin (array_like, optional) – Quad origin on the construction plane.
- width (numeric, optional) – Quad width.
- height (numeric, optional) – Quad height.
- depth (numeric, optional) – Quad depth.
Returns: Quad vertices.
Return type: ndarray
Examples
>>> quad() array([[0, 0, 0], [1, 0, 0], [1, 1, 0], [0, 1, 0]])