• 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.