A command-line tool for playing with color gradient

Read gradients from SVG & GIMP gradient (ggr) file

gradient

.

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 : Gradient display width (default: terminal width)
  • -H, --height : Gradient display height (default: 2)
  • -b, --background : Background color (default: checkerboard)
  • -s, --sample : Get color(s) at specific position
  • -t, --take : Get N colors evenly spaced across gradient
  • -o, --format : Output color format (default: hex) [hex, rgb, rgb255, hsl, hsv, hwb]

Preset gradient

  • -p, --preset : Using the preset gradient
  • -l, --list-presets : Lists all available preset gradients

Custom gradient

  • -c, --custom : Create custom gradient
  • -m, --blend-mode : Custom gradient blending mode (default: oklab) [rgb, linear-rgb, hsv, oklab]
  • -i, --interpolation : Custom gradient interpolation mode (default: catmull-rom) [linear, basis, catmull-rom]
  • -P, --position : Custom gradient color position

Gradient file

  • -f, --file : Read gradient from SVG or GIMP gradient (ggr) file(s)
  • --ggr-fg : GGR foreground color (default: black)
  • --ggr-bg : GGR background color (default: white)
  • --svg-id : Pick SVG gradient by ID

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. Colors can be specified using CSS color format.

gradient -c gold ff4700 'rgb(90,230,170)' 'hsl(340,50%,50%)' 'hsv(270,60%,70%)' 'hwb(230,50%,0%)'

TODO add more examples

Versions

Find the latest versions by id

Information - Updated May 24, 2022

Stars: 0
Forks: 0
Issues: 0

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

RGB (Rust Game Boy) is a simple emulator for the original game boy and the color game boy

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

A dead simple ANSI terminal color painting library for Rust

See the ansi_term, term_painter, to name a few), begging the question: why yet another? Here

A dead simple ANSI terminal color painting library for Rust

Rust VEML6040 RGBW Color Sensor Driver

This is a platform agnostic Rust driver for the VEML6040 RGBW color light

Rust VEML6040 RGBW Color Sensor Driver

A Gameboy Color (GBC) emulator written in Rust

There are two types of tests:

A Gameboy Color (GBC) emulator written in Rust

Lightweight color picker for X11

Building and running xcolor requires Xlib libraries to be present

Lightweight color picker for X11
CLI

3.6K

pastel is a command-line tool to generate, analyze, convert and manipulate colors

It supports many different color formats and color spaces like RGB (sRGB), HSL, CIELAB, CIELCh as well as ANSI 8-bit and 24-bit representations

pastel is a command-line tool to generate, analyze, convert and manipulate colors

A color management and conversion library that focuses on maintaining correctness, flexibility and ease of...

A color management and conversion library that focuses on maintaining correctness, flexibility and ease of use

A color management and conversion library that focuses on maintaining correctness, flexibility and ease of...

Color-picker is based on the following primary technologies:

Type the following command to install dependencies:

Color-picker is based on the following primary technologies:

A rust library for colorizing tracing_error::SpanTrace objects in the style

A rust library for colorizing color-backtrace

A rust library for colorizing tracing_error::SpanTrace objects in the style
Facebook Instagram Twitter GitHub Dribbble
Privacy