Plotting a point
< ........ Tutorial 01 ........ >
The point() function defines a point
Add this command to the code pane:
point(100, 50);
Run the sketch. Look for a small point at top left.
It is very small because the default size is 1 pixel.
The strokeWeight() function can be used to set the size.
Insert the statement:
strokeWeight(10);
as a line before the point() statement.
Run the sketch to display a point with diameter 10 pixels.