Skip to content

undefinedDarkness/dither-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amnesia - My little ditherer

A small project to fiddle around with GPU and Graphics programming, Built atop Zig and Mach

Features

  • Lookup up table (LUT) generation & application
  • Dithering:
    • Bayer
    • Atkinson
    • [TODO] Floyd Steinberg
    • Blue Noise
  • Nearest Neighbour Palette Lookup
  • Grayscale

Installation

Requirements

git clone --recurse-submodules -j8 http://github.com/undefinedDarkness/amnesia
cd amnesia
zig build run -- --help

Example: ./<binary> -d bayer -p palette.hex source.png

Credits

  • Zig language & build system
  • Mach for native webgpu bindings
  • zig-clap for argument parsing
  • stb for image reading / writing

Disclaimer

Some of the math & generated images might not be completley accurate, This stuff can be kind of hard to tell

About

Reasonably fast ditherer + colorizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published