/************************************* * Author: Jonathan Seguin * Last Modified: March 3rd 2010 * Problem Set: 2 * Question: 5 & 6 **************************************/ // create 3 instances of the cute spider Spider itsy; Spider bitsy; Spider widow; //**INPUT/SETUP** void setup () { size (720,480); smooth(); //left spider itsy = new Spider (width/4-85,0, 0.7, color (100,50,150), color (200,200,0), color(0) ); //middle spider widow = new Spider (width/2,0, 1.3, color (50,30,50), color (255,180,0), color(200,0,0,150) ); //right spider bitsy = new Spider (width/4*3+100,0, 0.5, color (50,200,100), color (150,0,0), color(0,100,0) ); } //**OUTPUT** void draw() { background(100); itsy.y = mouseY; itsy.thread(); itsy.spider(); widow.y = mouseY; widow.thread(); widow.spider(); bitsy.y = mouseY; bitsy.thread(); bitsy.spider(); }