My animation is a mushroom with a closed cap that when clicked opens like an umbrella exposing the stalk more. I have no idea where to go from here because my professor has not given us enough information. There is much more I need to add to this but before I go further I’d like some understanding of the mushrooms animation.
Here’s what I have so far:
color bColor = color(255, 255, 255); (disregard)
void setup() {
size(500,500);
//BACKGROUND GRADIENT START
int r=0;
int g=0;
int b=0;
int myStrokeWeight = 3;
for (int i = 0; i< height; i++)
{
stroke(r,i,b);
line(0,i,width,i);
}
//BACKGROUND GRADIENT END
}
void draw() {
bColor = color(mouseX, 255, mouseY); (disregard)
//BCOLOR CAN BE USED TO REPLACE FILL
//dirt floor
fill(#4d3300);
rect(-1,360,500,500);
//mushroom stalk
fill(#ffffe6);
noStroke();
rect(225,120,50,330);
ellipse(250,450,50,10);
//mushroom head
fill(#c2c2a3);
bezier(180,270,210,-50,290,-50,320,270);
}
Is there a way to switch between different beziers without an obvious transition? If it’s possible to have 2 mushroom head versions and move between the two that would be preferable.