feat: color: add channel properties to color

Add extra properties to the `color` type.
- `red`
- `green`
- `blue`
- `alpha`
This commit is contained in:
Luke D. Jones 2024-03-05 17:37:22 +13:00 committed by Olivier Goffart
parent 0409cb0140
commit 8c60cc74be
8 changed files with 73 additions and 3 deletions

View file

@ -66,6 +66,17 @@ draw the outline.
CSS Color names are only in scope in expressions of type `color` or `brush`. Otherwise, you can access
colors from the `Colors` namespace.
### Properties
The following properties are exposed:
- **`red`**
- **`green`**
- **`blue`**
- **`alpha`**
All properties are in the range 0-255.
### Methods
All colors and brushes define the following methods: