Find the spiral of your Birthday!
Made with p5.js & TurtleGraphics Try it here!
- find appropriate LICENSE
- create a fun homepage
- parse the numerical input and use it as a variable for the spiral color, length, ... (angle should be at least 35)
- create a "best of" of the parameters: angle 225 is really cool! With angles after 90° the spiral twists! Try 3456
- adding a slider for changing the color of the background: B/W or RGB?
- add the possibility to press the key "enter" for starting a new spiral
- possibility to save the canvas as an image, pdf or GIF
- possibility to send the image via email
- make the homepage responsive
makeTurtle(x, y) -- make a turtle at x, y, facing right, pen down
left(d) -- turn left by d degrees
right(d) -- turn right by d degrees
forward(p) -- move forward by p pixels
back(p) -- move back by p pixels
penDown() -- pen down
penUp() -- pen up
goto(x, y) -- go straight to this location
setColor(color) -- set the drawing color
setWeight(w) -- set line width to w
face(d) -- turn to this absolute direction in degrees
angleTo(x, y) -- what is the angle from my heading to location x, y?
turnToward(x, y, d) -- turn by d degrees toward location x, y
distanceTo(x, y) -- how far is it to location x, y?
Thanks to Professor Roger B. Dannenberg for the Turtle object created in p5.js.
Made with ❤️ by Alessandro Norfo and Stefano Collovati