We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Goodmorning everybody, I was trying to use the random() function to create a visually interesting grid ( a number of crossing horizontal and vertical lines) made up of adjacent points (with space between each other) and not by using the line() function. I was trying to use only the loop "for" but I am having problems on the next step. This is the start of my code.
for (int i=0; i<width; i+=width/verticalNumberLines)
for (int j=0; j<height; j+=space)
for (int j=0; j<height; j+=height/horizontalNumberLines)
for (int i=0; i<width; i+=space)
this is what I have now
and this second gray and orange grid is what I am trying to do, now I am very close and I tried in different ways but I don't understand what I should change, where I should use the random function.Could someone help me, please?!