Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/33/d216193782/htdocs/sites/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 77

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /homepages/33/d216193782/htdocs/sites/blog/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php on line 87

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/33/d216193782/htdocs/sites/blog/wp-includes/post-template.php on line 284
  • Contact Me
  • Archives
  • Categories
  • Week 2 – Variables, Random, Triangles

    2009 - 09.24

    In this exercise I used the Random function for deciding the color, size and position for each triangle on the screen. Also, when the mouse button is click the programming resets and begins drawing new triangles.

    I achieved the desired effect of the triangle spawning from the upper left, by give negative numbers to the random function.

    Check it out.

    Comments are closed.