Skip to content

Commit

Permalink
docs(api-wrapper/color-extractor): update info (#119)
Browse files Browse the repository at this point in the history
* docs(api-wrapper/color-extractor): correct usage example

* docs(api-wrapper/color-extractor): add `DARK_VIBRANT`

---------

Co-authored-by: Afonso Jorge Ramos <[email protected]>
  • Loading branch information
SunsetTechuila and afonsojramos authored Dec 10, 2023
1 parent b9a2fb3 commit ac8cdb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/development/api-wrapper/functions/color-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function colorExtractor(uri: string): Promise<{

| Name | Type | Description |
| :--- | :--- | :--- |
| DARK_VIBRANT | `string` | Dark vibrant color in hex format. |
| DESATURATED | `string` | Desaturated color in hex format. |
| LIGHT_VIBRANT | `string` | Light vibrant color in hex format. |
| PROMINENT | `string` | Prominent color in hex format. |
Expand All @@ -36,5 +37,5 @@ function colorExtractor(uri: string): Promise<{
```ts
// Get color from current track
const currentTrack = Spicetify.Player.data.item;
const colors = await Spicetify.ColorExtractor.colorExtractor(currentTrack.uri);
const colors = await Spicetify.colorExtractor(currentTrack.uri);
```

0 comments on commit ac8cdb8

Please sign in to comment.