Code P_2_1_1_01

Grundlegende Prinzipien –  P.2 Form –  P.2.1 Raster –  P.2.1.1 Anordnung im Raster –  P_2_1_1_01


  • 206 - 207


  • 2011-12-28 @ 3:08 pm   |  Comment by AJ

    Why does the division of the matrix stay the same even though the 'toggle' variable is written within the draw function and thus is processed 30 times per second. I would have expected the line matrix to change every time the draw function is executed. Why do the random values stay the same?


    Thank you.




  • 2012-01-01 @ 9:36 pm   |  Comment by Benedikt Groß

    hi aaron,


    because in each new iteration of the draw loop the randomSeed() function is called. the result is that the randomness or the sequence of the toggle numbers is determined by the parameter of the randomSeed() function.


    hope this helps,


  • 2014-04-09 @ 5:27 pm   |  Comment by Massimo Franceschet

    I think that line


    line(posX, posY+width/tileCount, posX+height/tileCount, posY);


    should be replaced by line


    line(posX, posY+height/tileCount, posX+width/tileCount, posY);


    The small bug becomes visible if you set a rectangular display window instead of a squared one.


    All the best.




Leave a Comment



Please enable JavaScript to post a comment.

(.zip, max. 1MB)  

Proof that you are human!
Please paste the snippet below in an empty Processing sketch!
What number does the Processing console show?