palgrad

Crates.iopalgrad
lib.rspalgrad
version0.0.1
sourcesrc
created_at2020-03-02 21:18:31.092578
updated_at2020-03-02 21:18:31.092578
descriptionA utility for artists and designers to explore color palettes and gradients.
homepage
repositoryhttps://github.com/okaneco/palgrad
max_upload_size
id214601
size84,260
Collyn O'Kane (okaneco)

documentation

README

palgrad

Build Status

Radial gradients and linear gradien

palgrad is a command line utility that creates color gradients and palettes from user input colors.

Gradients are created in Lch color space (also known as HCL), the cylindrical representaiton of the Lab or L*a*b* color space. Using this color space, gradients are generally more vibrant and visually appealing than other spaces like HSV or RGB.

Features

  • Radial and linear continuous gradients
  • Radial continuous gradients with overlay
  • Radial and linear stepped gradients
  • Declare colors in Lch, HSV, and RGB

Some ideas for using the output:

  • gamut masking
  • pixelization to make more color swatches
  • bring into digital painting programs to color pick from as limited palettes and apply more filters
  • website/application color themes

This crate uses palette to handle the heavy lifting of color conversion.

Documentation

To be updated

Examples

Overlay color on radial gradient

Radial gradients and linear gradien

palgrad -c -o -s 128

Overlay a 50% grey over the default RGB colors in -c with a size of 128x128 pixels. An overlay RGB color can be specified after the -o argument.

Stepped radial gradient

Radial gradients and linear gradien

palgrad --hsv -n 5 -s 128 -r 0.25

Use the default HSV colors --hsv, 5 steps between the colors, size of 128x128, and inner radius factor of -r 0.25.

Stepped linear gradient

Radial gradients and linear gradien

palgrad -l -d -n 8 --ss 30x20

Make a linear gradient -l with the default RGB decimal colors -d, 8 steps between the two colors, and the swatch sizes are 30x20 pixels each. To make a continuous gradient, omit the steps argument -n.

License

This crate is licensed under either

at your option.

Commit count: 13

cargo fmt