gradient
A command-line tool for playing with color gradients.
Features
- Lots of preset gradients.
- Custom gradient.
- Read gradients from SVG & GIMP gradient (ggr) file.
- Display gradient in the terminal.
- Get colors from gradient.
Installation
gradient
can be installed with cargo.
cargo install gradient
Usage
gradient [OPTIONS]
Options:
-W
,--width
-H
,--height
-b
,--background
-s
,--sample
-t
,--take
-o
,--format
Preset gradient
-p
,--preset
-l
,--list-presets
: Lists all available preset gradients
Custom gradient
-c
,--custom
-m
,--blend-mode
-i
,--interpolation
-P
,--position
Gradient file
-f
,--file
--ggr-fg
--ggr-bg
--svg-id
COLOR
can be specified using CSS color format.
Usage Examples
Get 100 colors (evenly spaced accross gradient domain) from rainbow preset gradient.
gradient -p rainbow -t 100
Display all gradients from svg file.
gradient -f file.svg
Create custom gradient.
gradient -c gold ff4700 'rgb(90,230,170)' 'hsl(340,50%,50%)' 'hsv(270,60%,70%)' 'hwb(230,50%,0%)'
TODO add more examples