You'll learn more about this in the Processing animation tutorial, but for now it's enough to know that creating your own custom functions makes it easier to organize your code into logical pieces ...
Now you now know how to [call functions](/tutorials/processing/calling-functions), [use variables](/tutorials/processing/using-variables), and [create your own ...