All Projects → mazznoer → gradient-rs

mazznoer / gradient-rs

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
A command line tool for playing with color gradients

Programming Languages

rust
11053 projects
shell
77523 projects

Projects that are alternatives of or similar to gradient-rs

Chromatic Sketch
Sketch plugin for creating good-looking and perceptually uniform gradients and color scales.
Stars: ✭ 445 (+378.49%)
Mutual labels:  color, gradient
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-82.8%)
Mutual labels:  color, gradient
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (+411.83%)
Mutual labels:  color, gradient
elm-color-extra
🎨 Additional color handling for Elm
Stars: ✭ 28 (-69.89%)
Mutual labels:  color, gradient
Height-Based-Gradient-Color-Shaders-for-Unity
Height Based 2 color gradient shaders for Unity
Stars: ✭ 18 (-80.65%)
Mutual labels:  color, gradient
Coolhue
Coolest Gradient Hues and Swatches
Stars: ✭ 3,307 (+3455.91%)
Mutual labels:  color, gradient
Complimentarygradientview
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js
Stars: ✭ 691 (+643.01%)
Mutual labels:  color, gradient
Hue
🎨 Hue is the all-in-one coloring utility that you'll ever need.
Stars: ✭ 3,306 (+3454.84%)
Mutual labels:  color, gradient
Colorbands
Unity 3D's Gradient is a handy data type but comes with some limitations: for example you cannot set more than 8 color keys in its editor and RGB is the only color space available. ColorBand data type offers an alternative with less limitations. Creating ColorBands is fun and easy; they are stored as assets and can be accessed from code through an Evaluate method to get the color at time t, as for Gradient. RGB (or HSV) values are described by individual curves, allowing a better control over how the color function evolves between your points. Color bands are used in all kinds of applications including games, data visualization and other fields.
Stars: ✭ 137 (+47.31%)
Mutual labels:  color, gradient
Kaloader
Beautiful animated placeholders for showing loading of data
Stars: ✭ 99 (+6.45%)
Mutual labels:  color, gradient
Fast Average Color
🍏🍊🍅 Fast Average Color
Stars: ✭ 531 (+470.97%)
Mutual labels:  color, gradient
Dynamiccolor
Yet another extension to manipulate colors easily in Swift and SwiftUI
Stars: ✭ 2,677 (+2778.49%)
Mutual labels:  color, gradient
Colorgrad
Go (Golang) color scales library for maps, charts, data-visualization & creative coding.
Stars: ✭ 96 (+3.23%)
Mutual labels:  color, gradient
Uigradient
A simple and powerful library for using gradient layer, image, color
Stars: ✭ 208 (+123.66%)
Mutual labels:  color, gradient
colr
Easy terminal colors, with chainable methods.
Stars: ✭ 32 (-65.59%)
Mutual labels:  color, gradient
prism
Colour management for Go
Stars: ✭ 26 (-72.04%)
Mutual labels:  color
gimp-rom-bin
GIMP plug-in to read/write SNES / NES / GB / GBA / NGP / MD / etc ROM image, tile and sprite files
Stars: ✭ 54 (-41.94%)
Mutual labels:  gimp
imageman
Image manipulation library. Use Pixie instead.
Stars: ✭ 58 (-37.63%)
Mutual labels:  color
colorama
A Gem for extracting the most prevalent colors from an image
Stars: ✭ 20 (-78.49%)
Mutual labels:  color
flutter colorgen
a Flutter MaterialColor generator example
Stars: ✭ 12 (-87.1%)
Mutual labels:  color

gradient

Build Status crates.io

A command-line tool for playing with color gradients.

gradient-cli-tool

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

Preset gradient

  • -p, --preset <NAME> : Using the preset gradient
  • -l, --list-presets : Lists all available preset gradient names

Custom gradient

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

Gradient file

  • -f, --file <FILE>... : Read gradient from SVG or GIMP gradient (ggr) file(s)
  • --ggr-fg <COLOR> : GGR foreground color (default: black)
  • --ggr-bg <COLOR> : GGR background color (default: white)
  • --svg-id <ID> : Pick one SVG gradient by 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].