S3016468 Processing sketch - PROJECT 3
From Physical Programming
This Processing sketch is very simple. It renders a ball in 3D which is moved by mouse, when you click the mouse the ball with change colours from red to blue, and the background will change from pink to white. When you hold the mouse down and move it around the screen the background colour will change depending on which directional axis X or Y you are moving towards. Bottom right is white. Top right is purple. Bottom left is aqua, top left is blue. The colour variable for background have been preset, and the background refreshes so there are no multiple spheres.
Michelle McDonell.

