NAME
-Msubst::dyncmap - Getopt::EX Dynamic colormap module
SYNOPSIS
option --subst-color-light \ -Msubst::dyncmap \ --colormap \ --dyncmap \ range=0-2,except=000:111:222,shift=3,even="555D/%s",odd="I;000/%s"
DESCRIPTION
Parameter is given in a form of name=value and connected by comma.
- range=s-e[:s-e[:s-e]]
-
RGB range. All range can be given like
0-2:0-2:0-2
, or if the number of range is less than three, last range is repeated.Each RGB value is in the range of 0 to 5, and produces 6x6x6 216 colors.
- except
-
Specify exception value, like
000:111:222
. - even=colormap
- odd=colormap
-
Colormap string for even and odd index. String is given to
sprintf
function with RGB parameter. - shift=number
-
Range is shifted by this value for odd index map. Shifted value have to be in the range of 0 to 5.
- sort=[none,average,luminance]
-
Specify sort algorithm. Default is average.
- reverse=[0,1]
-
If true, map is reversed.
SEE ALSO
Getopt::EX, Getopt::EX::Colormap
App::Greple, App::Greple::subst
AUTHOR
Kazumasa Utashiro
LICENSE
Copyright (C) 2020 Kazumasa Utashiro.
You can redistribute it and/or modify it under the same terms as Perl itself.