Reactive Blocks 1
Posted on Dec 21st, 2007
tags:
processing
Processing provides a few variables to easily get the mouse's current x and y coordinates, namely mouseX and mouseY. This demo uses a simple calculation (based on the dist function) to draw the blocks in different locations as the mouse moves.