From c53a0e13374a11b34c052685fb6711dd1bd7d8f1 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 29 Nov 2022 04:01:37 +0100 Subject: [PATCH] document available palette parameter names Public specification, with former uk grey spelling replaced by us gray (consistent with "color"). --- barcat | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/barcat b/barcat index fe8c11d..0cfdb2d 100755 --- a/barcat +++ b/barcat @@ -94,7 +94,7 @@ GetOptions(\%opt, 202 208 214 220 226 227 228 229 230 231 159 )], whites => [qw( 1;30 0;37 1;37 )], - greys => [map {"38;5;$_"} 0, 232..255, 15], + grays => [map {"38;5;$_"} 0, 232..255, 15], random => [map {"38;5;$_"} List::Util::shuffle(17..231)], rainbow=> [map {"38;5;$_"} 196, # r @@ -619,7 +619,7 @@ These options can be set to customize this range. =item B<--palette>=(I | I...) Override colors of parsed numbers. -Can be any CSI escape, such as C<90> for default dark grey, +Can be any CSI escape, such as C<90> for default dark gray, or alternatively C<1;30> for bright black. In case of additional colors, @@ -628,8 +628,35 @@ If unspecified, these are green and red respectively (C<31 90 32>). Multiple intermediate colors will be distributed relative to the size of values. -Predefined color schemes are named I and I, -or I and I for 256-color variants. +A non-numeric name can refer to a predefined color scheme: + +=over 8 + +=item B + +Minimal set of monochrome brightnesses. + +=item B + +Utilize the 24 grayscale ramp in 256-color terminals. + +=item B + +Gradient red to white in 7 out of 16 colors. + +=item B + +Extended to 17 colors out of 256. + +=item B + +Saturated red to green to blue to red. + +=item B + +All 215 extended colors in unrelated orders. + +=back =item B<-_>, B<--spark> -- 2.30.0