Skip to content

implement Floyd-Steinberg and Atkinson dithering functions - #30

Open
Kimmicorn-glitch wants to merge 19 commits into
Nate534:mainfrom
Kimmicorn-glitch:feature-dithering-clean
Open

implement Floyd-Steinberg and Atkinson dithering functions#30
Kimmicorn-glitch wants to merge 19 commits into
Nate534:mainfrom
Kimmicorn-glitch:feature-dithering-clean

Conversation

@Kimmicorn-glitch

Copy link
Copy Markdown
Contributor

This PR introduces two dithering methods:
Floyd–Steinberg and Atkinson to improve the visual quality of ASCII art. Dithering reduces banding artifacts and creates smoother gradients when converting images to ASCII.

Changes included:

Added dithering.py with floyd_steinberg_dither and atkinson_dither functions.

Updated ascii_conversion.py and brightness converter to accept optional dithering.

CLI now supports : dithering argument (none, floyd, atkinson).

Unit tests for dithering functions added and all tests passing.

@Nate534

Nate534 commented Oct 21, 2025

Copy link
Copy Markdown
Owner

i like what you did here but i have some improvements id like you to make that kind of go agains what i asked in the issue but i think itll improve the program, for the implementation, since dithering is modifying the image itself, if the dithering function is called it should dither the image beforehand then pass the dithered image to whatever ascii conversion method is used.
if you need more information please dont be afraid to ask

@Kimmicorn-glitch

Kimmicorn-glitch commented Oct 21, 2025 via email

Copy link
Copy Markdown
Contributor Author

@Kimmicorn-glitch

Kimmicorn-glitch commented Oct 21, 2025 via email

Copy link
Copy Markdown
Contributor Author

@Nate534

Nate534 commented Oct 21, 2025

Copy link
Copy Markdown
Owner

sorry i did accept a new pull request would you mind updating your implementation so there aren't any merge conflicts

@Kimmicorn-glitch

Kimmicorn-glitch commented Oct 21, 2025 via email

Copy link
Copy Markdown
Contributor Author

@Kimmicorn-glitch

Kimmicorn-glitch commented Oct 21, 2025 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants