Native ReasonML project to extract colors from files and print them to true color terminals
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Bryan Bennett 1c55f0f1e2
Initial commit
3 months ago
bin Initial commit 3 months ago
lib Initial commit 3 months ago
.gitignore Initial commit 3 months ago
LICENSE Initial commit 3 months ago
README.md Initial commit 3 months ago
dune-project Initial commit 3 months ago
pixel.opam Initial commit 3 months ago
shell.nix Initial commit 3 months ago

README.md

Pixel

Display colors to true-color terminals.

What?

Many terminals (st, konsole, iTerm2, all VTE terminals) can display true color. This program parses out HTML-ish hex color strings (either 3 or 6 characters, after the #), deduplicates them, and displays them to the user on stdout.

This allows easy display and selection of colors based on a file's (or multiple files') contents.

Why?

Well, the original version of this is pyxel. I didn't love that I was dependent on the Python run-time for that after a while.

Also it's a relatively simple problem and I am learning more about MLs and functional programming. Pyxel gave me somewhere to start and a concrete problem space.

How?

Well, you have options. Either install opam and create an opam switch.