Skip to main content

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

ParameterDescription
xx-coordinate of the point
yy-coordinate of the point