Skip to content

transform an image to a text frame like donut code

License

Notifications You must be signed in to change notification settings

thearian/pixel-char

Repository files navigation

Pixel-Char: transform an image to a text frame

Pixel-Char Pixel-Char
Heavily inspired by donut code

Usage

Using the binaries at /bin

$ pixel-chars.exe <IMAGE_PATH> <RESOLUTION> <white || black> 

Using cargo

$ cargo run <IMAGE_PATH> <RESOLUTION> <white || black>

How it works

  1. Resizes the image to the specified resolution
  2. Checks each pixel dim by multiplying red, green and blue
  3. Replaces the pixel by a character that has the same dim in order: .,-~:;=!*#$@

Contributing

  1. Clone
  2. Create a new branch
  3. Commit your changes
  4. Send a pull request

About

transform an image to a text frame like donut code

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages