All Projects → bcicen → tcolors

bcicen / tcolors

Licence: MIT license
Commandline color picker and palette builder

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to tcolors

Leonardo
Generate colors based on a desired contrast ratio
Stars: ✭ 973 (+2111.36%)
Mutual labels:  color-picker, color-palette
Colorbook
🎨 Color schemes for UI design - Optimized for foreground, background, border, etc. https://liyasthomas.github.io/colorbook
Stars: ✭ 148 (+236.36%)
Mutual labels:  color-picker, color-palette
Colors App
🎨 A PWA for copying values from popular color palettes. Supports HEX, RGB, and HSL formats.
Stars: ✭ 90 (+104.55%)
Mutual labels:  color-picker, color-palette
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+100%)
Mutual labels:  color-picker, color-palette
react-native-image-color-picker
Image color picker based on image source provided and return image different color palettes or average color palette
Stars: ✭ 25 (-43.18%)
Mutual labels:  color-picker, color-palette
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (+936.36%)
Mutual labels:  color-picker, color-palette
React Native Color Wheel
🌈 A react native reusable and color picker wheel
Stars: ✭ 137 (+211.36%)
Mutual labels:  color-picker, color-palette
Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
Stars: ✭ 39 (-11.36%)
Mutual labels:  color-picker, color-palette
Colorpicker
Simple, maintained and highly customizable colorpicker library for Android.
Stars: ✭ 31 (-29.55%)
Mutual labels:  color-picker, color-palette
Md Color Picker
Angular-Material based color picker
Stars: ✭ 253 (+475%)
Mutual labels:  color-picker, color-palette
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+886.36%)
Mutual labels:  color-picker, color-palette
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (-15.91%)
Mutual labels:  color-picker, color-palette
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+8443.18%)
Mutual labels:  color-picker, color-palette
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-63.64%)
Mutual labels:  color-picker, color-palette
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+515.91%)
Mutual labels:  color-picker, color-palette
Colordrop
Interactive Drag & Drop Coloring with Material Design Color palette
Stars: ✭ 120 (+172.73%)
Mutual labels:  color-picker, color-palette
epick
Color picker for creating harmonic color palettes that works on Linux, Windows, macOS and web.
Stars: ✭ 89 (+102.27%)
Mutual labels:  color-picker, color-palette
aframe-colorwheel-component
A-Frame Colorwheel. Based on A-Painter and A-Frame Material 🎨🅰
Stars: ✭ 16 (-63.64%)
Mutual labels:  color-picker, color-palette
Flexcolorpicker
Modern color picker library written in Swift 5 that can be easily extended and customized. It aims to provide great UX and performance with stable, quality code.
Stars: ✭ 164 (+272.73%)
Mutual labels:  color-picker, color-palette
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (-52.27%)
Mutual labels:  color-picker, color-palette

tcolors

Commandline color picker and palette builder

tcolors

Overview

tcolors is a commandline application for creating palettes of one or more colors in HSV space. Created palettes and their colors may be output in several different formats for import and use into other programs.

Colors are imported from, and changes automatically saved to, a human-readable TOML format file.

Installing

Go get with:

go get github.com/bcicen/[email protected]

Or download the latest release for your platform:

Linux / OSX

curl -Lo tcolors https://github.com/bcicen/tcolors/releases/download/v0.2/tcolors-0.2-$(uname -s)-amd64
chmod +x tcolors
sudo mv tcolors /usr/local/bin/

AUR

tcolors is also available for Arch in the AUR

Docker

docker run --rm -ti --name=tcolors \
  quay.io/vektorlab/tcolors:latest

Usage

Simply run tcolors to view and modify the default palette. Changes are automatically saved and will persist across sessions.

Keybindings

Key Description
↑, k navigate up
↓, j navigate down
←, h decrease selected value
→, l increase selected value
<shift> + ←/→/h/l more quickly increase/decrease selected value
a, <ins> add a new palette color
x, <del> remove the selected palette color
q, <esc> exit tcolors
? show help menu

Palette files

To create a new palette or use a specific palette, use the -f option:

tcolors -f logo-palette.toml

Palette colors are stored in a human-readable TOML format and all changes are saved on exit.

Output

In addition to a stored TOML palette file, tcolors provides several output options for parsing and using defined colors

All

Default output option providing a formatted table of colors

# tcolors -p
+----+--------+-------------+-------------+------------------------------------+
| #  |  HEX   |     HSV     |     RGB     |                TERM                |
+----+--------+-------------+-------------+------------------------------------+
| bg | 141414 | 000 000 008 | 020 020 020 | \033[38;2;020;020;020m$@\033[0;00m |
|  0 | FF7733 | 020 080 100 | 255 119 051 | \033[38;2;255;119;051m$@\033[0;00m |
|  1 | FFDD33 | 050 080 100 | 255 221 051 | \033[38;2;255;221;051m$@\033[0;00m |
|  2 | C8FF59 | 080 065 100 | 200 255 089 | \033[38;2;200;255;089m$@\033[0;00m |
|  3 | 55FF33 | 110 080 100 | 085 255 051 | \033[38;2;085;255;051m$@\033[0;00m |
|  4 | 33FF77 | 140 080 100 | 051 255 119 | \033[38;2;051;255;119m$@\033[0;00m |
|  5 | 33FFDD | 170 080 100 | 051 255 221 | \033[38;2;051;255;221m$@\033[0;00m |
|  6 | 33BBFF | 200 080 100 | 051 187 255 | \033[38;2;051;187;255m$@\033[0;00m |
+----+--------+-------------+-------------+------------------------------------+

Hex, RGB, HSV

Each of these output options provide all colors in a single comma-delimited line; e.g:

# tcolors -p -o hex
141414, FF7733, FFDD33, C8FF59, 55FF33, 33FF77, 33FFDD, 33BBFF

Term

The term output option provides a series of named functions for easy importing and terminal use

# tcolors -p -o term
_colorbg() { echo -ne "\033[38;2;020;020;020m$@\033[0;00m"; }
_color0() { echo -ne "\033[38;2;255;119;051m$@\033[0;00m"; }
_color1() { echo -ne "\033[38;2;255;221;051m$@\033[0;00m"; }
_color2() { echo -ne "\033[38;2;200;255;089m$@\033[0;00m"; }
_color3() { echo -ne "\033[38;2;085;255;051m$@\033[0;00m"; }
_color4() { echo -ne "\033[38;2;051;255;119m$@\033[0;00m"; }
_color5() { echo -ne "\033[38;2;051;255;221m$@\033[0;00m"; }
_color6() { echo -ne "\033[38;2;051;187;255m$@\033[0;00m"; }

Sourcing:

source <(tcolors -p -o term)
echo "my $(_color2 what) a $(_color4 bright) $(_color6 day)"

Options

Option Description
-f specify palette file to load/save changes to
-p output current palette contents
-o color format to output (hex, rgb, hsv, term, all) (default "all")
-v print version info
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].