Skip to content

meh/colorb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColoRB - Colorify your strings

Just a gay library to colorify strings, used in packo.

"lol".white.red.bold                    # Get a bold white string with red background
"lol".white.red.bold.underline.standout # Get an underlined dark red with bright white background

The first color is always the foreground, if you pass a second color it becomes the background.

By default it uses default terminal colors, so you won't get black backgrounds on transparent terminals.

To get a string with default color and specific background just do something like this

"lol".default.blue  # This will output a default color with blue background string

Colors: default, black, red, green, yellow, blue, magenta, cyan, white

Extra: clean, bold, underline, blink, standout

256 colors support

If the used terminal supports 256 colors you can use them too, example:

"lol".color(255).color(160) # Get a white string with red background

About

Colorify your strings

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages