Skip to content

diegelmannsj/colorize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

🎨 Colorize

A versatile Bash script to print text in true color (24-bit) directly in your terminal, specified by HEX or RGB values. Includes options for generating color shades and complementary colors.

Installation

  1. Make the script executable:
    chmod +x colorize
  2. Move it to a directory in your PATH:
    sudo mv colorize /usr/local/bin/

Usage

colorize [options] [<text...>] <color>

Options (case-insensitive)

  • -s, --shades: Display the color, plus 5 darker and 5 lighter shades.
  • -c, --complementary: Display the complementary color.
  • -cs, -sc: Enable both shades and complementary modes.
  • -t, --text <string>: Specify the text to color. Overrides positional text.

Examples

Basic Usage

# Using a HEX color
colorize 'Hello, World!' '#4285F4'

# Using an RGB color
colorize 'This is red.' '255,0,0'

Generate Shades

# Get 11 shades of a color using the default text
colorize -s ff7f50

Show Complementary Color

colorize --complementary 'Base and Complement' '008080'

Combine Shades & Complementary

colorize -cs 'All the colors!' 4B0082

Specify Text with a Flag

colorize -s --text "My text here" C51077

About

A Bash script for printing text in true color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages