Skip to content

A fast, terminal-based color picker with mouse support. Allows for color picking in RGBA, HSL, and CMYK.

Notifications You must be signed in to change notification settings

Cubified/colorslide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorslide

A fast, terminal-based color picker with mouse support. Allows for color picking in RGBA, HSL, and CMYK.

demo.gif

I wrote this because no color picker I could find online had all the features I wanted, in particular the ability to adjust the current color in multiple color spaces at the same time.

Built using my custom terminal UI library tuibox.

Features

  • Fast -- Takes advantage of tuibox's caching features to speed up rendering
  • Completely dependency-free -- Uses pure ANSI escape codes, without ncurses
  • Built for mouse -- Color sliders are click-and-drag

Compiling and Running

To compile and run colorslide, run:

 $ make
 $ ./colorslide

To start with a color already selected (as opposed to a random color), run:

 $ ./colorslide [color]

Where [color] is a 6-digit or 8-digit hex color code (e.g. "aabbcc" or "aabbccdd").

To-Do

  • Properly handle resize events (this will require updating tuibox)
  • Better keyboard support

About

A fast, terminal-based color picker with mouse support. Allows for color picking in RGBA, HSL, and CMYK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published