table of contents
| pastel-mix(1) | General Commands Manual | pastel-mix(1) |
NAME¶
pastel-mix - Mix two colors in the given colorspace
SYNOPSIS¶
pastel mix [-s|--colorspace] [-f|--fraction] [-h|--help] <color> [color]
DESCRIPTION¶
Create new colors by interpolating between two colors in the given colorspace.
Example:
pastel mix --colorspace=RGB red blue
OPTIONS¶
- -s, --colorspace <name> [default: Lab]
- The colorspace in which to interpolate
[possible values: Lab, LCh, RGB, HSL, OkLab]
- -f, --fraction [default: 0.5]
- The number between 0.0 and 1.0 determining how much to mix in from the base color.
- -h, --help
- Print help (see a summary with '-h')
- <color>
- The base color which will be mixed with the other colors
- [color]
- Colors can be specified in many different formats, such as #RRGGBB,
RRGGBB, #RGB, 'rgb(…, …, …)', 'hsl(…,
…, …)', 'gray(…)' or simply by the name of the color.
The identifier '-' can be used to read a single color from standard input.
Also, the special identifier 'pick' can be used to run an external color
picker to choose a color. If no color argument is specified, colors will
be read from standard input. Examples (all of these specify the same
color):
- lightslategray
- '#778899'
- 778899
- 789
- 'rgb(119, 136, 153)'
- '119,136,153'
- 'hsl(210, 14.3%, 53.3%)' Alpha transparency is also supported:
- '#77889980'
- 'rgba(119, 136, 153, 0.5)'
- 'hsla(210, 14.3%, 53.3%, 50%)'
| mix |