From 60fffcf8199e8f4ce30e405d4437c50b4bb81e55 Mon Sep 17 00:00:00 2001 From: makeworld Date: Mon, 20 Oct 2025 21:48:56 -0400 Subject: [PATCH] update docs --- MANPAGE.md | 8 +++++--- didder.1 | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MANPAGE.md b/MANPAGE.md index 58575dd..ccf2b23 100644 --- a/MANPAGE.md +++ b/MANPAGE.md @@ -3,8 +3,8 @@ title: DIDDER section: 1 header: User Manual -footer: didder v1.3.0 -date: December 20, 2023 +footer: didder v1.3.0-15-g870ed78 +date: October 20, 2025 --- # NAME @@ -49,6 +49,8 @@ Images are converted to grayscale automatically if the palette is grayscale. Thi Here's an example of all color formats being used: **\--palette \'23,230,100 D24242 135 forestGreen'** +Alternative, you can write mmcq:N in lieu of color names, where N is a power of two. This will use the median cut algorithm to pick the top N colors in the image, and set those as the palette. + **-r**, **\--recolor** *COLORS* Set the color palette used for replacing the dithered color palette after dithering. The argument syntax is the same as **\--palette**, with one exception. It also supports RGB*A* tuples, so 4 values. This means you can also choose to change the opacity of a palette color after dithering. The values are not premultiplied, so set the RGB to the color you want as you'd expect. @@ -136,7 +138,7 @@ Grayscale and RGB random dithering Accepts two arguments (min and max) for RGB or grayscale, or six (min/max for each channel) to control each RGB channel. Arguments can be separated by commas or spaces. -Random dithering adds random noise to the image. The min and max numbers limit the range of the random noise. A good default is -0.5,0.5, which means that a middle gray pixel is 50% likely to become black and 50% likely to become white, assuming a black and white palette. So -0.2,2.0 will reduce the noise (20%), while -0.7,0.7 will increase it (70%). Values like -0.5,0.7 will bias the noise to one end of the channel(s). +Random dithering adds random noise to the image. The min and max numbers limit the range of the random noise. A good default is -0.5,0.5, which means that a middle gray pixel is 50% likely to become black and 50% likely to become white, assuming a black and white palette. So -0.2,0.2 will reduce the noise (20%), while -0.7,0.7 will increase it (70%). Values like -0.5,0.7 will bias the noise to one end of the channel(s). **-s**, **\--seed** *DECIMAL* diff --git a/didder.1 b/didder.1 index 1ea28c8..9988ac4 100644 --- a/didder.1 +++ b/didder.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 3.8.2 .\" -.TH "DIDDER" "1" "October 20, 2025" "didder v1.3.0-15-g566375b" "User Manual" +.TH "DIDDER" "1" "October 20, 2025" "didder v1.3.0-15-g870ed78" "User Manual" .SH NAME didder \(em dither images .SH SYNOPSIS