point()

Examples

point() example
void draw() {
  point(30, 20);
  point(85, 20);
  point(85, 75);
  point(30, 75);
}

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.

Syntax

point(x, y)

Parameters

x float: x-coordinate of the point
y float: y-coordinate of the point

Returns

void

Back to index