shape()
Shape / Loading & DisplayingDescription
Draws a shape to the display window.
Syntax
void shape(const PShape& s, float x, float y)
void shape(const PShape& s, float x, float y, float w, float h)
Parameters
| Name | Type | Description |
|---|---|---|
| s | PShape | the shape to draw |
| x | float | x-coordinate |
| y | float | y-coordinate |
| w | float | width (optional) |
| h | float | height (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...