Sketches made with p5.js ツ

OVERVIEW

In this project, I created six sketches fitting in different criterias: static, random, infinite loop, interactive, audio, and audio + visuals.



GALLERY (also linked to dedicated page in nav bar)


DEVELOPMENT PROCESS

These are the main steps I took in approaching this project.


  • Reading up on p5 documentation
  • Looking at example p5 artwork for inspiration
  • A lot of trial and error in drawing out exactly what I wanted
  • Looking up related p5 examples to dissect the code
  • Adding animation loops, trying out different motions
  • (2 mid-process photos shown below)



  • ISSUE DEEP DIVE

    Per usual, there were a lot of problems I ran into in the process. One of the bigger ones was trying to have a loop animation with my triangles at the top of the house. I had trouble having the animation bounce back and forth, or continue without straying off the page.


    I approached this problem with several steps, including:

  • Double checking my coordinates to where I wanted the animation to end
  • Looked at bouncing ball code examples to understand how to increment time and dimension
  • My code was working a bit more, but the loop was starting over instead of bouncing back
  • In the end, I was able to have a looping animation that bounced back and forth


  • IDEAS AND FUTURE WORK

    Here are some ideas for improving on the gallery:


  • I'm hoping to later work on implementing navigation arrows between my sketches
  • Try animating some characters in the house
  • Having a day/night (or light/dark) mode
  • Having the face on the star be able to turn dark when the background color is light (for contrast)


  • KUDOS

    I got lots of support and resources during this project, including:


  • p5.js demos by @mattdesl
  • The p5.js library of references
  • Sample sketches by instructor Hannah, and other coders online
  • Coding train tutorial videos were helpful for the microphone sketch
  • Big shoutout to my instructor Hannah for helping me work through my coding roadblocks