Pixel Art Image Lesson
What is Pixel Art?
Pixel art is an artistic design based on pixels and created using digital means. Pixel art is commonly used in video games, especially for a retro effect. Things like QR codes and bar codes are also techniquely pixel art.
How is Binary Incorporated?
In an image created from pixel art, the pixels must be either “on” or “off” and be a certain color (if not black and white). This involves binary, since there is a boolean output (2 possible outputs, 0 or 1).
Generating a random image using binary and pixels
- Link to jupyter notebook
- run this command in your terminal to make it interactive!: wget https://raw.githubusercontent.com/alexac54767/Alexa-Fastpage/master/_notebooks/2023-04-16-BinaryProjectCode.ipynb
-
This code takes a certain amount of pixels (in this case I secified as 500 by 500) and will randomly choose between a 0 or 1 for every pixel. This use of binary will determine if the pixel is white (a 1) or black (a 0).
-
This is an example of an image it produced:
- What is the significance?
- Many companies/stores use this method for things like QR codes and labels. Randomly generated images of pixels allow for almost infinite possibilities for unique labels or identifications of products.