Reactive Blocks 1

tags: processing

A Java plugin is required to view this content.
Get the latest Java Plug-in here.

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.

Add A Comment

Some html formatting accepted. Please use Markdown syntax for entering formatting markup. All comments are moderated and we reserve the right to remove inappropriate material.