To view this content, you need to install Java from java.com

Made the background color random.
By default, the line drawing color (the "stroke") color is black.
Because I added the function named getRandomColor, I had to wrap the "do once" drawing code in the setup function.

Source code: random_horizontal_lines_0002

Built with Processing