Beginning the description of paintbrush physics.
The rest of the code explained.