Add info on HSV colors to README

This commit is contained in:
Sven Weidauer 2021-01-02 22:33:52 +01:00 committed by GitHub
parent 78fcdef196
commit e8a02b0180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ Base/Red rgb(249, 39, 7)
TransparentRed rgba(255, 0, 0, 128) TransparentRed rgba(255, 0, 0, 128)
Base/Yellow #ff0 Base/Yellow #ff0
``` ```
Grayscale colors can be produced with the `white(value)` and `white(value, alpha)` syntax. A value of zero means black while a value of 255 is pure white. Grayscale colors can be produced with the `white(value)` and `white(value, alpha)` syntax. A value of zero means black while a value of 255 is pure white.
``` ```
@ -53,6 +54,12 @@ MediumGray white(128)
TransparentGray white(128, 128) TransparentGray white(128, 128)
``` ```
HSV colors can be specified as `hsv(hue, saturation, value)` or `hsva(hue, saturation, value, alpha)` syntax. Hue is specified as degrees with the `°` or `deg` suffix.
```
HSV/Yellow hsv(60°, 255, 255)
```
Colors can also reference other colors by prefixing them with an `@` sign: Colors can also reference other colors by prefixing them with an `@` sign:
``` ```