Week 4: Homework

Using p5.js was a new experience for me, similarly to how I started out writing our shader codes in The Book of Shaders Editor, I had to visit a variety of sources to brush up on the basic concepts of creating code on p5.js and how to set up a sketch to be eligible to perform the tasks I require it to execute. I gained a lot of help from the p5.js reference to understand how to use a variety of the functions that were available to use.


For this work, I used a photo of a compilation of quick sketches from a different class and wanted to recolor and reconstruct the image so that it appears overly distorted. In order to do this, I repeatedly manipulated the pixels, changing their rgba values and utilizing shaping functions including sine, cosine, and square root.


Leave a Reply

Your email address will not be published. Required fields are marked *