sharkdp/pastel

support all named colors from X11 rgb.txt

Open

#138 opened on May 10, 2021

 (5 comments) (0 reactions) (0 assignees)Rust (127 forks)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (6,392 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Just came across this nice program, only to realize that it is missing many named colors:

$ pastel color red3
[pastel error]: Could not parse color 'red3'

Please see https://en.wikipedia.org/wiki/X11_color_names and https://cgit.freedesktop.org/xorg/app/rgb/tree/rgb.txt .

The few clashing color names could be resolved by using a x11- prefix like in x11-gray.

Contributor guide