From db102270df5318a138a4ec33c42b17f125ca0e5b Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Tue, 17 Jan 2017 12:37:26 -0800 Subject: [PATCH] add example code to top four models --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index efc0c2a..0fd866a 100644 --- a/readme.md +++ b/readme.md @@ -210,10 +210,10 @@ Background versions of these models are prefixed with `bg` and the first level o As of this writing, these are the supported color models that are exposed in Chalk: -- `rgb` -- `hex` -- `keyword` (CSS keywords) -- `hsl` +- `rgb` - e.g. `chalk.rgb(255, 136, 0).bold('Orange!')` +- `hex` - e.g. `chalk.hex('#ff8800').bold('Orange!')` +- `keyword` (CSS keywords) - e.g. `chalk.keyword('orange').bold('Orange!')` +- `hsl` - e.g. `chalk.hsl(32, 100, 50).bold('Orange!')` - `hsv` - `hwb` - `cmyk`