[−][src]Static p5_sys::global::point
pub static point: PointInternalType
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 param 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.
Examples
point(30, 20); point(85, 20); point(85, 75); point(30, 75);
point(30, 20); point(85, 20); stroke('purple'); // Change the color strokeWeight(10); // Make the points 10 pixels in size point(85, 75); point(30, 75);
let a = createVector(10, 10); point(a); let b = createVector(10, 20); point(b); point(createVector(20, 10)); point(createVector(20, 20));
Overloads
x
the x-coordinate
y
the y-coordinate
z?
the z-coordinate (for WebGL mode)
coordinate_vector
the coordinate vector