Answers for "how to draw flower petals around circle javascript"

0

how to draw flower petals around circle javascript

size(400, 400);
background(#ffffff);
smooth();
Posted by: Guest on April-04-2020
0

how to draw flower petals around circle javascript

size(400, 400);
background(#ffffff);
smooth();
// set centre point
translate(width/2, height/2);
// centre circle
ellipse(0, 0, 50, 50);
// draw 5 petals, rotating after each one
for (int i = 0; i < 5; i++) {
  ellipse(0, -50, 50, 50);
  rotate(radians(72));
}
Posted by: Guest on April-04-2020

Code answers related to "how to draw flower petals around circle javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language