for my processing project im trying to make 3 pandas holding green bamboo. The bamboo is supposed to be made with using a quad. And it also needs to be used with keypressed, everytime I press the key it should turn to a brighter or darker green but I do not know how to make bamboo using a quad. Can someone help me out please? Thank you
// Initialize size to output window and draw smooth lines and borders
void setup()
{
size(450, 350);
}
void draw()
{
// The x and y coordinates vary each loop
// and are calculated from mouseX and mouseY
float x, y;
// Erases the screen
background(255);
// Draw 3 pandas
// Values of ctr increment as follows: -1.5, -0.5, 0.5, 1.5
for (float ctr = -1.5; ctr <= 1; ctr++)
{
//x and y coordinates from upper left to the lower right
x = mouseX + ctr * 100;
y = mouseY + ctr * 195;
//feet
fill(0);
ellipse(x+100,y+160,90,50);
ellipse(x+220,y+160,90,50);
//Body
fill(255);
ellipse(x+160,y+130,140,90);
//head
fill(255);
ellipse(x+160,y+55,160,100);
//ears
fill(0);
ellipse(x+220,y+6,40,30);
ellipse(x+100,y+6,40,30);
//eyes
ellipse(x+190,y+42,50,50);
ellipse(x+125,y+42,50,50);
//nose
arc(x+160, y+65, 20, 20, 0, PI*1.0);
//pupil
fill(255);
ellipse(x+185,y+50,13,13);
ellipse(x+130,y+50,13,13);
//hands
fill(0);
ellipse(x+140,y+130,40,45);
ellipse(x+185,y+130,40,45);
//Bamboo
quad(38, 31, 86, 20, 69, 63, 30, 76);
}
}