diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 86b13b3d7..73474f825 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -6,7 +6,7 @@ Copyright (c) 2002-2024 Various contributors (see below, and AUTHORS.txt) https://tuxpaint.org/ -2024.March.15 (0.9.33) +2024.March.19 (0.9.33) * New Magic Tools: ---------------- * WIP Specular Reflection: Draws a slightly blurred, wavy, and @@ -22,7 +22,6 @@ https://tuxpaint.org/ or the currently-selected color; with "Dither (Keep Color)", X is a muted version of the original color. Bill Kendrick - + WIP Needs icon + WIP Needs sound effect * Improvements to Eraser tool: diff --git a/magic/icons/dither.png b/magic/icons/dither.png new file mode 100644 index 000000000..85dd2fab7 Binary files /dev/null and b/magic/icons/dither.png differ diff --git a/magic/icons/dither_keep_color.png b/magic/icons/dither_keep_color.png new file mode 100644 index 000000000..8837a2afe Binary files /dev/null and b/magic/icons/dither_keep_color.png differ diff --git a/magic/src/dither.c b/magic/src/dither.c index c7d9786b2..971ab32b3 100644 --- a/magic/src/dither.c +++ b/magic/src/dither.c @@ -5,7 +5,7 @@ (Using Atkinso dithering: https://en.wikipedia.org/wiki/Atkinson_dithering) by Bill Kendrick - Last updated: February 29, 2024 + Last updated: March 19, 2024 */ @@ -45,8 +45,8 @@ char * dither_descr[NUM_TOOLS][2] = { }; char * dither_icon_filenames[NUM_TOOLS] = { - "reflection.png", // FIXME - "reflection.png", // FIXME + "dither.png", + "dither_keep_color.png", }; char * dither_snd_filenames[NUM_TOOLS] = { @@ -323,7 +323,7 @@ dither_release(magic_api * api, int which, else { api->rgbtohsv(r, g, b, &h, &s, &v); - api->hsvtorgb(floor(h / 2.0) * 2.0, min(s + 0.5, 1.0), v / 2.0, &r, &g, &b); + api->hsvtorgb(floor(h / 2.0) * 2.0, min(s + 0.5, 1.0), v * 0.66, &r, &g, &b); api->putpixel(canvas, x, y, SDL_MapRGB(canvas->format, r, g, b)); } }