point
Description
Draws a point, a coordinate in space at the dimension of one pixel. The first parameter is the horizontal value for the point, the second parameter is the vertical value for the point. The color of the point is changed with the stroke function. The size of the point can be changed with the strokeWeight function.
Syntax
point(x, y)
Parameters
Parameter | Description |
---|---|
x | x-coordinate of the point |
y | y-coordinate of the point |