
rotate(degrees);
translate(xPos,yPos);
for (var x = 0; x < width; x +=
padding) {
strokeWeight(thickness);
line(x, 0, x, height);
}
pop();
}
Each function is very similar, so feel free to
experiment with them. The only one that is much
different is the circle pattern which does not have
a degree offset.
I’ve included a few key press functions to let
you play with the patterns. I made them global
variables so you can add them to your function
calls easily.
let angle = 0;
let xPos = 0;
let yPos = 0;
makeLines(4, 10, angle, xPos, yPos);
If you call the function like this, you can use the
W, A, S, and D keys to move the pattern, and V and ...