Tips for golfing in Processing Does anyone have any code-golf tips for golfing in Processing? It is a graphical extension of java, and is somewhat difficult to golf.
If no animation is required, you can skip the void draw() and put everything into void setup().
Initialising the size of the canvas is sometimes not necessary - it will be initialised to (100, 100) by default.
If you need to use height and width in your code, it is usually shorter to use their numeric values instead. For example, with a canvas of size (100, 100), using 99 to replace height and width can save you 7 bytes.