Sonntag, 5. Oktober 2014

Homework - Processing

The homework from last lesson was to experiment with the learned codes and try out some repetition. So I created a field about 500x500 big with a dark, grey background. I decided to use 3 values (i,j,k).

k is used for the rotation (line 10 and 12). It makes it possible to get a more or less random rotation of the forms and colours. It starts at zero.
i and j are responsible for the colouring. I used them in line 15 and replaced green and blue with them. i grows in steps of 5, j in smaller steps of 1 (line16 and 17). Both values start at five.

I then said if one of the colour values goes over the maximum of 250, it has to start at zero again.

For repetition I used a rectangle form and a code I took from the reference website. This code influences the picture that is created by moving the mouse over the field. If the mouse moves faster, the forms get bigger (and the other way round). Because of the rotation you never know exactly where the forms will appear again. So the result is a chaotic, colourful picture.


Keine Kommentare:

Kommentar veröffentlichen

Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.