Well, first check out this and really try to write your own code in every step to make it look the same ;) then experiment with different colors and see what happens when you take away one or another bit of the code, to learn what's what.
Or, maybe here you can learn more in an even better way xD