From ac8cdb88c6211fd5505a75e257f7cc7152395fe1 Mon Sep 17 00:00:00 2001 From: Grigory Date: Sun, 10 Dec 2023 21:04:14 +0500 Subject: [PATCH] docs(api-wrapper/color-extractor): update info (#119) * docs(api-wrapper/color-extractor): correct usage example * docs(api-wrapper/color-extractor): add `DARK_VIBRANT` --------- Co-authored-by: Afonso Jorge Ramos --- docs/development/api-wrapper/functions/color-extractor.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/development/api-wrapper/functions/color-extractor.md b/docs/development/api-wrapper/functions/color-extractor.md index 607a11a..cd86bcc 100644 --- a/docs/development/api-wrapper/functions/color-extractor.md +++ b/docs/development/api-wrapper/functions/color-extractor.md @@ -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. | @@ -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); ```