LinuxCommandLibrary

pastel

Generate, analyze, convert and manipulate colors.

TLDR

Convert colors from one format to another. Here from RGB to HSL

$ pastel format [hsl] [ff8000]
copy


Show and analyze colors on the terminal
$ pastel color "[rgb(255,50,127)]"
copy


Pick a color from somewhere on the screen
$ pastel pick
copy


Generate a set of N visually distinct colors
$ pastel distinct [8]
copy


Get a list of all X11/CSS color names
$ pastel list
copy

Help

pastel 0.8.1 
A command-line tool to generate, analyze, convert and manipulate colors 

USAGE:
    pastel [OPTIONS]  

OPTIONS:
    -m, --color-mode                
            Specify the terminal color mode: 24bit, 8bit, off, *auto* 

    -f, --force-color                     
            Alias for --mode=24bit 

        --color-picker  
            Use a specific tool to pick the colors [possible values: gpick, xcolor, grabc, 
            colorpicker, chameleon, kcolorchooser] 
    -h, --help                            
            Prints help information 

    -V, --version                         
            Prints version information 


SUBCOMMANDS:
    color         Display information about the given color 
    list          Show a list of available color names 
    random        Generate a list of random colors 
    distinct      Generate a set of visually distinct colors 
    sort-by       Sort colors by the given property 
    pick          Interactively pick a color from the screen (pipette) 
    format        Convert a color to the given format 
    paint         Print colored text using ANSI escape sequences 
    gradient      Generate an interpolating sequence of colors 
    mix           Mix two colors in the given colorspace 
    colorblind    Simulate a color under a certain colorblindness profile 
    set           Set a color property to a specific value 
    saturate      Increase color saturation by a specified amount 
    desaturate    Decrease color saturation by a specified amount 
    lighten       Lighten color by a specified amount 
    darken        Darken color by a specified amount 
    rotate        Rotate the hue channel by the specified angle 
    complement    Get the complementary color (hue rotated by 180°) 
    gray          Create a gray tone from a given lightness 
    to-gray       Completely desaturate a color (preserving luminance) 
    textcolor     Get a readable text color for the given background color 
    help          Prints this message or the help of the given subcommand(s) 

Copied to clipboard