Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Caterpillar

 
Bruno Ribeiro
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

As part of an assignment, I have to draw a caterpillar.
I managed to do it, but I can't make it perfect. I can't make the loop stop before the last oval is drawn and go beyond the graphics window.

Here is the code:



Thank you so much for the help!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!