Noemi Martinez-Santiago

Programming for artists


Lab 3a


Source code: pfa_3a_pattern

Built with Processing

brief

Make your own patterns using some of the looping structures we learnt about today. Make sure you comment your code:
//explaining what you have done and why.

If you can include arithmetic and conditional branching that would be excellent.


notes

I've created a for loop to iterate the cross shape and used the modulo operator to rotate it.

I wanted both crosses to rotate in opposite directions, but I found hard to control the translate function. I'll have to experiment a little bit more.