Skip to content

Commit

Permalink
docs: add int24/uint32/sint32 to color table
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy committed Sep 8, 2024
1 parent 4aac471 commit 1b51130
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,19 @@ These types are designed to closely match the [palette.json](https://github.com/

##### Color

| Field | Type | Description | Examples |
| ------------ | -------- | --------------------------------------- | -------------------------------------- |
| `name` | `String` | The name of the color. | `"Rosewater"`, `"Surface 0"`, `"Base"` |
| `identifier` | `String` | The identifier of the color. | `"rosewater"`, `"surface0"`, `"base"` |
| `order` | `u32` | Order of the color in the palette spec. | `0` to `25` |
| `accent` | `bool` | Whether the color is an accent color. | |
| `hex` | `String` | The color in hexadecimal format. | `"1e1e2e"` |
| `rgb` | `RGB` | The color in RGB format. | |
| `hsl` | `HSL` | The color in HSL format. | |
| `opacity` | `u8` | The opacity of the color. | `0` to `255` |
| Field | Type | Description | Examples |
| ------------ | -------- | ----------------------------------------------- | -------------------------------------- |
| `name` | `String` | The name of the color. | `"Rosewater"`, `"Surface 0"`, `"Base"` |
| `identifier` | `String` | The identifier of the color. | `"rosewater"`, `"surface0"`, `"base"` |
| `order` | `u32` | Order of the color in the palette spec. | `0` to `25` |
| `accent` | `bool` | Whether the color is an accent color. | |
| `hex` | `String` | The color in hexadecimal format. | `"1e1e2e"` |
| `int24` | `u32` | Big-endian 24-bit color in RGB order. | `1973806` |
| `uint32` | `u32` | Big-endian unsigned 32-bit color in ARGB order. | `4280163886` |
| `sint32` | `i32` | Big-endian signed 32-bit color in ARGB order. | `-14803410` |
| `rgb` | `RGB` | The color in RGB format. | |
| `hsl` | `HSL` | The color in HSL format. | |
| `opacity` | `u8` | The opacity of the color. | `0` to `255` |

##### RGB

Expand Down

0 comments on commit 1b51130

Please sign in to comment.