ansi-256-colors
Advanced tools
Comparing version
{ | ||
"name": "ansi-256-colors", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "256 xterm color codes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -28,11 +28,32 @@ # ansi-256-colors [](https://travis-ci.org/jbnicolai/ansi-256-colors) | ||
- 256 color codes | ||
- `standard` containing the 8 default colors | ||
- `bright` containing the 8 bright/bold default colors | ||
- `rgb` containing 216 different red-green-blue values | ||
- `grayscale` containing 24 tints ranging from white to black | ||
- `getRgb(int, int, int)` return a colour in the rbg ranges 0 to 6 | ||
#### colors.\<fg|bg\>.getRgb(\<red\>[0..6], \<green\>[0..6], \<blue\>[0..6]) | ||
Returns the color code for the given red-green-blue value. | ||
#### colors.\<fg|bg\>.codes[0..255] | ||
All 256 color codes. | ||
#### colors.\<fg|bg\>.standard[0..7] | ||
The 8 base color codes, guaranteed to work on every system. | ||
#### colors.\<fg|bg\>.bright[0..7] | ||
The 8 base bright/bold color codes, guaranteed to work on every system. | ||
#### colors.\<fg|bg\>.grayscale[0..23] | ||
The 24 grayscales ranging from white to black. | ||
#### colors.\<fg|bg\>.rgb[0..216] | ||
The 216 varying color tints, where the order corresponds to the code-point 36\*`r` + 6\*`g` + `b`. | ||
#### colors.reset | ||
Closes any previously opened color codes. | ||
## License | ||
MIT © [Jbnicolai](http://jbnicolai.com) | ||
MIT © [Joshua Boy Nicolai Appelman](http://jbnicolai.com) |
4426
51.16%4
33.33%59
55.26%