Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palette Print Bash

ANSI palette in your bash terminal!

Prints specified range of colors and its brightness

Install

Download and drop the script into appropriate folder. Then either source insde .{zsh|bash}rc file or put into right /binary folder.

# .zshrc
$ . /path/to/palette.bash 
$ mv /downloads/palette.bash $HOME/.local/bin # XDG default
$ mv /downloads/palette.bash /usr/local/bin   # Others 

Usage:

To print the palette

$   palette.bash [[brightness] [colors]] [legend_radix]
$ ./palette.bash ...
# brightness    - Any int from 0 to 255 
# colors        - Any int from 0 to 255 
# legend_radix  - 16 or 10

Commands

Command Shortcut Description
palette.bash help show help
palette.bash cache clear cache
palette.bash examples x show examples
palette.bash --version v print version

How it works?

Under hood it uses ANSI escape codes to print the palette.

License

See palette.bash file.

See also

  • $ man console_codes

Copyright (C) 2021- hinell@github.com

About

Demo of ANSI escape codes palette right in your bash!

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages