Scale a bezier shape
in
Programming Questions
•
1 year ago
Hi!
Does anyone know why scale() and rotate() fctns don't work for the bezier shape I created? What don't I understand about the scale and rotate functions?
Thank you for the help!
McKinnley
Does anyone know why scale() and rotate() fctns don't work for the bezier shape I created? What don't I understand about the scale and rotate functions?
Thank you for the help!
McKinnley
- //Leaf recursion program INCOMPLETE
void setup() {
size(400,400);
background(206, 198, 198);
noLoop();
}
void draw() {
leaf(200,200,1, 1);
}
void leaf(int x, int y, int lfSize, int dir) {
beginShape();
vertex(x,y);
bezierVertex(x+50, y-60, x+100, y-30, x+150, y-50);
bezierVertex(x+100, y+30, x+50, y+30, x, y);
endShape();
scale(3);
rotate(2*PI);
}
//create vine class
1