From 4b29e3f09cc314b1f20f7269593a8f225bdbc3cf Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Tue, 17 Jan 2017 13:10:29 -0800 Subject: [PATCH] better describe downsampling process --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0fd866a..b9e5db5 100644 --- a/readme.md +++ b/readme.md @@ -194,7 +194,7 @@ console.log(chalk.styles.red.open + 'Hello' + chalk.styles.red.close); Chalk supports 256 colors and, when manually specified, [Truecolor (16 million colors)](https://gist.github.com/XVilka/8346728) on all supported terminal emulators. -For supported methods (listed below), the color will be 'fit' to the color level supported (i.e. RGB colors will be downsampled to 16 colors if only basic support is enabled). +Colors are downsampled from 16 million RGB values to an ANSI color format that is supported by the terminal emulator (or by specifying {level: n} as a chalk option). For example, Chalk configured to run at level 1 (basic color support) will downsample an RGB value of #FF0000 (red) to 31 (ANSI escape for red). Some examples: