Click here to edit this code in the p5.js editor.
This sketch uses a for loop to draw lines that get progressively messier.
for
I created this for the 22nd day of Genuary which had a prompt of “Draw a line. Wrong answers only.”
Use a for loop to create a silhouette of lines.
Draw lines the wrong way.
Draw a gradient from one color to another.
Draw a grid of random flowers.
Use `sin()` to make spooky text.
Code your own virtual menorah!
Make a rocket from the whitespace in your code.
Code a design inspired by Vera Molnár.
Add your own example to Happy Coding.