originally explained in a comment from https://scratch.mit.edu/projects/884747064/ , this is a visual explanation.