We're going to learn the basics by implementing this: http://littlesvr.ca/processing/squarespiral.html
If you look at the code you may think this is so simple it's not worth your time, but this is a first implementation in a library you haven't used before, possibly in a language you haven't used much, so there's a lot to learn by implementing it.
This is a marked lab. Please submit it using Moodle.
You will modify and extend my first example. You can start from my code in the square spiral example above or you can write your own from scratch.
Make each segment (the short line drawn per frame) a different colour, specify the colour using numbers for R,G,B.
Continuing from that - pick 4 colours and make the lines on each side gradients of that colour. You can find a dynamic colour wheel online to help you understand what mixtures of RGB create different shades of the same colour. With red green and blue this is pretty simple, other colours (which are combinations of two or more of the basic three) will take a bit more work to figure out.
Add the same screenshot (or more than one if you like) to BTC640/ProcessingBasics/Lab2013-1. Please do not overwrite other people's screenshots, choose a unique filename.
Submit your .pde file and a screenshot of the fully rendered square to Moodle (the two files inside an archive).