The bitwise right shift operator moves all bits of a value ‘x’ times:
Each right shifting halves the value; so >> 1 is equivalent to / 2, >> 2 is / 4, and so on.
The advantage of using the operator >> in place of / is that the former guarantees the result is always a whole number (truncated division) when the code is transpiled to run on the web from Java (Processing library) to JS (Pjs library).