Create a user defined function called drawLines() that has a strokeWeight(3) and a random r, g, b value with lower red, medium green and higher blue values.
****What is it telling me to do with the colors?
This is what I am trying to create…
The line should start at the top and increase every 20 pixels on the x coordinate. The height is controlled by a random range from 50 to the height of the frame. This method will have the call loop() as the last statement. This will be called in the draw() method.
I can get it to do the first vertical line, and I have a feeling they are all writing on top of each other. What would I do to fix that?
{
strokeWeight(3);
for (int x = 0; x < 400; x++)
{
stroke(random(0, 100), random(0, 150), random(0, 255));
line(20, 0, y+20, random(50, 400));
loop();}
}
`type or paste code here`