Relative and global coordinates

see also screenX screenY equivalent in p5.js - #5 by bohnacker