processing code for drawing rainbow with less code