Skip to content

Commit

Permalink
doc: fix header level in color-convert README (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ximex authored Sep 24, 2024
1 parent 45490df commit 5f02345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/color-convert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,25 +202,25 @@ validHex("#8c0dba") //=> true
rgbaToHexa({ b: 26, g: 2, r: 209, a: 1 }) // => '#d1021aff'
```

### `hexToXY`
#### `hexToXY`

```js
hexToXY('#4780f1') // => { x: 0.261, y: 0.231, bri: 0.863 }
```

### `xyToHex`
#### `xyToHex`

```js
xyToHex({ x: 0.261, y: 0.231, bri: 0.863 }) // => #4780f1
```

### `rgbToXY`
#### `rgbToXY`

```js
rgbToXY({ r: 71, g: 128, b: 241 }) // => { x: 0.261, y: 0.231, bri: 0.863 }
```

### `xyToRgb`
#### `xyToRgb`

```js
xyToRgb({ x: 0.261, y: 0.231, bri: 0.863 }) // => { r: 71, g: 128, b: 241 }
Expand Down

0 comments on commit 5f02345

Please sign in to comment.