Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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));
}
Source by keyvan.net #
 
PREVIOUS NEXT
Tagged: #draw #flower #petals #circle #javascript
ADD COMMENT
Topic
Name
5+8 =