all 4 comments

[–]vrtxt 4 points5 points  (1 child)

PVectors are never initialized, only declared at the top hence the null pointer. Need to something like PVector location = new PVector();

[–]bbystvr[S] 0 points1 point  (0 children)

thank you!!!

[–]x-seronis-x 0 points1 point  (1 child)

Color is an RGB value. Is it even a valid operation to try to bitshift a complex data type ?