a port of the Processing Visualization Language
Name

point()

Examples
example pic
point(30, 20);

point(85, 20);

point(85, 75);

point(30, 75);
example pic
size(100, 100, P3D);

point(30, 20, -50);

point(85, 20, -50);

point(85, 75, -50);

point(30, 75, -50);
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 value is the vertical value for the point, and the optional third value is the depth value. Drawing this shape in 3D using the z parameter requires the P3D or OPENGL parameter in combination with size as shown in the above example.
Syntax
point(x, y)

point(x, y, z)
Parameters
x int or float: x-coordinate of the point
y int or float: y-coordinate of the point
z int or float: z-coordinate of the point
Usage Web & Application
Related beginShape()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub