Skip to content

telnet23/py256color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

py256color

Convert between 256 colors and RGB.

The implementation is based on colour.c from tmux.

Usage

from py256color import from_rgb, to_rgb

from_rgb(42, 84, 126)  # 24

to_rgb(96)  # (135, 95, 135)

Releases

No releases published

Packages

No packages published

Languages