class Flower { float centerX = width/2; float centerY = height/2; float x; float y; float u; float cc; Flower (float cc_) { cc = cc_; } void display () { fill(mouseY/2+50,mouseX/2+50,c, 100); strokeWeight(2); stroke(mouseY/2-50,mouseX/2-50,c-50, 100); translate (centerX,centerY); ellipseMode (CENTER); rotate(u); ellipse (x,0, 30,30); } void grow () { if (moving) { x = (x*speed+speed); if (x > 250 || x < -250) { speed= speed*-1; } u = u+1; } } } class Stem { Stem () { } void show (){ rectMode(CENTER); fill(0); rect(width/2,height/2+150, 10, 300); } } class Legend { float cc; Legend (float cc_) { cc = cc_; } void show() { futura = loadFont("FuturaStd-Book-18.vlw"); textFont(futura); fill (255); noStroke(); rect (70,560, 140, 80); strokeWeight(0); fill(0); noStroke(); text("clear", 45, 545); text("fill color", 45, 570); text("stroke color", 45,590); fill(mouseY/2+50,mouseX/2+50,c,200); ellipse (20, 560, 15, 15); strokeWeight(4); noFill(); stroke(mouseY/2-50,mouseX/2-50,c-50, 255); ellipse (20, 580, 15, 15); noStroke(); fill (0); rect (20, 540, 15, 15); } }