top of page

Pixels

Writer: Kevin LeeKevin Lee

Pixels are fun to work with, especially because I was an illustrator and now I can find ways to combine my drawings with my code.


I faced challenges when I had to alter the colors of my images using either tint or the filter functions. When I ran sketches using these filters my web browser would crash. I asked a couple people, and they said that its because the web browser itself is limited. I think I want to start to explore visual studio code now.


In this particular sketch I tried to use a BLUR filter and control its blurriness with perlin noise. I think the combination of movement and constantly randomizing variables put a lot of stress on the web browser.


Another challenge that I faced was resizing the (x,y) position when get-ting pixels from a pixel region. I learned that the pixels are not taken from the image being displayed but directly from the image itself. The only way I could imagine reorienting the size is to have the images sized correctly before adding it to the code.


Finally the biggest technical difficulty was trying to fit and see the images on my web browser. The images I draw are pretty large and I don't want to reduce the quality. But I can't see what is happening with my sketch. I hope to ask how could I resize the web browser so I can see the entire image.


I completed a crucial aspect of my fish which is the overall shape. It was bothering me that people associated my fish with tadpoles, larvae, or sperm, so it was satisfying to put this issue at rest.


 
 
 

Recent Posts

See All

The Scream Machine

https://editor.p5js.org/Inkreas/sketches/1NsFyGwnk Initially I was trying to connect my phone to play music into my p5 sketch using the...

This Week's ICM reflection

1. what do you feel confident about? I've always felt confident about my concepts. I feel confident when I'm making simple interactions...

1 Comment


Ellen Nickles
Ellen Nickles
Nov 08, 2021

Hi Kevin, I believe we got to many of your questions in class, yes? You know you can always follow-up with me! I will add that optimizing images for the web deserves it’s own dedicated time and attention. I prefer to use a feature from Photoshop, File > Export > Save for Web, where you can mess with image size, sharpening algorithm (and for non-PNGs, the quality) and see an immediate preview of any changes along with the anticipated new file size when you save.


Your fish are coming along so nicely! For the snow, here’s the section from Nature of Code introducing vectors. (This is actually chapter 1; I misspoke in class: all the random variations are described in…

Like
Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by Bitch You Thought Blog. Proudly created with Wix.com

bottom of page