Tpick is a tui color picker because I was not satisfied with the available color pickers.
None of them have a way to select with HSL except for this one but that's a neovim extension which is clunky.
Currently there are no cli options.
- Input format, the format used for inputting a color
- Selection format, the way that selecting a color is done, eg: rgb, hsl
- Output format, the color format used for outputting
Control | action |
---|---|
l | increase current value |
L | increase current value by 10 |
h | decrease current value |
H | decrease current value by 10 |
0-9 | set current value to 0%-90% |
$ | set current value to 100% |
o | cycle output format |
O | Various output format options |
i | cycle input format |
I | Input a number for the selected slider |
y | copy output |
Y | copy ONLY the output value with no extra formatting |
p | Paste color from clipboard (can be any supported format) |
a | Enable/disable alpha channel |
n | Input a new color |
q | quit |
<CR> | quit and copy to clipboard |
-
0 <= R <= 255 (red)
-
0 <= G <= 255 (green)
-
0 <= B <= 255 (blue)
-
0 <= A <= 255 (alpha)
-
0 <= H <= 360 (hue)
-
0 <= S <= 100 (saturation)
-
0 <= L <= 100 (lightness)
rgb(R, G, B)
rgba(R, G, B, A)
hsl(H, S, L)
hsla(H, S, L, A)
\x1b[38;2;R;G;Bm
R;G;B
#RGB
#RGBA
#RRGGBB
#RRGGBBAA
hsl
rgb
rgb(R, G, B)
rgba(R, G, B, A)
hsl(H, S, L)
hsla(H, S, L, A)
#RRGGBB
#RRGGBBAA
\x1b[38;2;R;G;Bm
See the example config
- Swap between different selections
- HSL
- RGB
-
CYMKnot really useful - ANSI 256 color selection pannel
- Ability to input number for slider
- Custom output formats that can be used with
convert/-o
- Swap between different outputs
- Let user pick from some kind of menu instead of cycling (or both)
- Option to display all outputs at once
- Custom output formats
-
Show multiple different custom output formats- This is unecessary as different formats can be seperated with %n (a new line)
- Swap between different output cycles
- Specify starting value with cli option
- Read starting value from stdin
- Copy output
- Convert any supported format to any other supported format via cli.
- Pressing a key to input a color
- Cli options for setting default Selection/Output formats
- Event system
- would write to some kind of fifo/socket file that a shell script can read from
- events would include:
- color change
- on color copy
- selection type changed
- Config file
- Custom output formats
- Keybindings
- Multiple color previews to allow color comparisons
- Saving colors
- Using the kitty keyboard input standard
- supporting non 24bit (truecolor) terminals.