How to write simple functions with parametrs. The code contains some simple functions that compute return values. Also contains a slightly more fleshed out drawTruck() function. Just click the mouse anywhere to see some trucks appear.
Source code: basicFunctions
Built with Processing