jiaxinwang / SteinbergDitherer

Applies the Floyd-Steinberg dithering effect to any image you select. Can use a random palette, 2-tone palette, or selectively-random palette.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FLOYD-STEINBERG DITHERING

An example picture

Simple Python program that applies a Floyd-Steinberg dithering effect to a .png or .jpg file. If you aren't sure what the Floyd-Steinberg dithering effect is, check this wikipedia article - https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering

Use

Run main.py - It will provide you with a file selection dialog. Choose whatever picture you want to dither.

The program will then show the available options on the command line. First, you choose a dithering method. You can either choose to render the image in a 2-tone black and white image, or you can choose to use an RGB palette dithering method.

If you select the RGB palette option, an additional choice will appear. You can then decide whether to have the program pick a completely random palette, or if it should select random values found in the image itself to make up the palette. After you choose one of these options, you must specify how many colors should be available in the palette.

Once you have selected your options, the program will start to apply the dithering effect. Once it is done, a window displaying the picture will appear. You can press 's' to save it to the project home folder or 'ESCAPE' to close the window.

About

Applies the Floyd-Steinberg dithering effect to any image you select. Can use a random palette, 2-tone palette, or selectively-random palette.


Languages

Language:Python 64.7%Language:Tcl 23.4%Language:C 8.1%Language:C++ 3.6%Language:PowerShell 0.1%Language:Batchfile 0.0%