Processing provides some predefined methods, which are predefined blocks of code that can be called by naming the method and passing an appropriate list of arguments.
Pattern:
methodName(argumentList);
where:
As an example, consider the
point()
method, which is predefined by Processing:
Pattern for the
point()
method:
point(xPosition, yPosition);
where:
Calling the
point()
method:
point(25, 50);
Here, the method point()
is called, passing two literal arguments, 25
and 50
, which specify the x and y coordinates of the point being drawn
respectively.