add example code to top four models

This commit is contained in:
Josh Junon 2017-01-17 12:37:26 -08:00
parent 4fe7e8399a
commit db102270df

View file

@ -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`