Processing uses an absolute coordinate system for its drawing functions, but other programming languages like Logo use a relative system called turtle graphics. 
This is a companion discussion topic for the original entry at https://happycoding.io/examples/processing/creating-functions/turtle-graphics