Inspired by <https://github.com/sindresorhus/sparkly>, a js spark port.
Different from its {style:'fire'} in being 16-color compatible and having
red at the lower end (matching lower temperature to low values).
'spark:s' => sub {
$opt{spark} = [split //, $_[1] || '▁▂▃▄▅▆▇█'];
},
'spark:s' => sub {
$opt{spark} = [split //, $_[1] || '▁▂▃▄▅▆▇█'];
},
- 'palette:s' => sub {
- $opt{palette} = [ split /\s/, $_[1] ];
+ 'palette=s' => sub {
+ $opt{palette} = {
+ fire => [qw( 90 31 91 33 93 97 96 )],
+ whites => [qw( 1;30 0;37 1;37 )],
+ }->{$_[1]} // [ split /\s/, $_[1] ];
},
'stat|s!',
'signal-stat=s',
},
'stat|s!',
'signal-stat=s',
to the largest value encountered.
These options can be set to customize this range.
to the largest value encountered.
These options can be set to customize this range.
-=item --palette=<color>...
+=item --palette=(<preset> | <color>...)
Override colors of parsed numbers.
Can be any CSI escape, such as I<90> for default dark grey,
Override colors of parsed numbers.
Can be any CSI escape, such as I<90> for default dark grey,