Skip to content
Client
Server

Reference / @open-music-sdk/types / tArtwork

Interface: tArtwork ​

Defined in: common.ts:7

An object that represents artwork.

Properties ​

bgColor? ​

ts
optional bgColor?: string;

Defined in: common.ts:9

The average background color of the image.


height ​

ts
height: number;

Defined in: common.ts:11

The maximum height available for the image.


textColor1? ​

ts
optional textColor1?: string;

Defined in: common.ts:15

The primary text color used if the background color gets displayed.


textColor2? ​

ts
optional textColor2?: string;

Defined in: common.ts:17

The secondary text color used if the background color gets displayed.


textColor3? ​

ts
optional textColor3?: string;

Defined in: common.ts:19

The tertiary text color used if the background color gets displayed.


textColor4? ​

ts
optional textColor4?: string;

Defined in: common.ts:21

The final post-tertiary text color used if the background color gets displayed.


url ​

ts
url: string;

Defined in: common.ts:23

The URL to request the image asset. {w}x{h}must precede image filename, as placeholders for the width and height values as described above. For example, {w}x{h}bb.jpeg).


width ​

ts
width: number;

Defined in: common.ts:13

The maximum width available for the image.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.