Processing Forum
Draw the following pattern using loops. There are 9 red and 9 blue lines, but the number of lines should be adjustable in the program. Also note that although there are 9 lines, there are 8 intervals between adjacent lines and hence the gap between each line is height/8.The black rectangle is of 20 width and 80 height and has a partial opacity that can be achieved by fill(0,127);