Skip to content

baubrey91/PixelBoy

Repository files navigation

PixelBoy

Photo processing app that lets you import images and turns them into "8-Bit Style" graphics

Features

  • Import images
  • Adjust contrast
  • Adjust brightness
  • Sound when processing or deleting
  • Animation when processing
  • Power indicator when processed
  • Save to photo librar
  • Share
  • Unit Tests
  • Editible colors (hard coded cannot be done in app)

Processing

The image processing is done in three steps

  1. Crop the image to have a 160 x 144 ratio
  2. Reduce the image to a planar2 grayscale ie each pixel holds 2 bits which is 4 colors. Here we also need to dither which is build into the Accelerate Framework
  3. Iterate through each pixel and map the gray value to a green value

Sample

Imported Processed
Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 27 47 Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 28 17

Video

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-27.at.10.41.11.mp4

Alternative Colors

GBOrignal GBPocket
Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 31 12 Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 31 57

Other

Home Splash Screenn Error Screen
Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 27 38 Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 37 01 Simulator Screenshot - iPhone 16 Pro - 2025-02-27 at 10 37 04

Style

Follows Rey Wenderlich style guide https://github.com/raywenderlich/swift-style-guide

Credited Work

Inspiration from

About

Image processor to turn image into GameBoy graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors