Skip to main content

@omega/color@1.2.11
Built and signed on GitHub Actions

Various color conversions.

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
6 months ago (1.2.11)
f
cmykToHSL

Converts a CMYK(A) color array to a HSL(A) color array.

f
hexToHSL

Parses a hex RGB(A) color code into a HSL(A) array.

f
hexToRGB

Parses a hex RGB(A) color code into a RGB(A) array.

f
hslToRGB

Converts a HSL(A) color array to a RGB(A) color array.

f
parseHexToHSL

Attempts to parse a string as a RGB(A) hex color code into a HSL(A) array.

f
parseHexToRGB

Attempts to parse a string as a RGB(A) hex color code into a RGB(A) array.

f
rgbToHSL

Converts RGB(A) color arrays to HSL(A) color arrays.

f
cmykToHSL

Converts a CMYK(A) color array to a HSL(A) color array.

f
hexToHSL

Parses a hex RGB(A) color code into a HSL(A) array.

f
parseHexToHSL

Attempts to parse a string as a RGB(A) hex color code into a HSL(A) array.

f
rgbToHSL

Converts RGB(A) color arrays to HSL(A) color arrays.

f
hexToRGB

Parses a hex RGB(A) color code into a RGB(A) array.

f
hslToRGB

Converts a HSL(A) color array to a RGB(A) color array.

f
parseHexToRGB

Attempts to parse a string as a RGB(A) hex color code into a RGB(A) array.