colorizr 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +90 -6
- package/dist/index.d.ts +90 -6
- package/dist/index.js +274 -107
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +257 -107
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -13
- package/src/converters/oklab2rgb.ts +11 -20
- package/src/converters/rgb2oklab.ts +14 -19
- package/src/index.ts +17 -1
- package/src/luminance.ts +5 -10
- package/src/modules/constants.ts +36 -21
- package/src/modules/gamma.ts +20 -0
- package/src/modules/linear-rgb.ts +7 -7
- package/src/scale.ts +397 -70
package/dist/index.d.mts
CHANGED
|
@@ -658,6 +658,26 @@ declare function extractAlphaFromHex(input: string): number;
|
|
|
658
658
|
*/
|
|
659
659
|
declare function removeAlphaFromHex(input: string): HEX;
|
|
660
660
|
|
|
661
|
+
declare const CLMS_TO_OKLAB: number[][];
|
|
662
|
+
declare const DEG2RAD: number;
|
|
663
|
+
declare const LMS_TO_LRGB: number[][];
|
|
664
|
+
declare const LRGB_TO_LMS: number[][];
|
|
665
|
+
declare const OKLAB_TO_CLMS: number[][];
|
|
666
|
+
declare const P3_TO_SRGB: number[][];
|
|
667
|
+
declare const P3_TO_XYZ: number[][];
|
|
668
|
+
declare const SRGB_TO_P3: number[][];
|
|
669
|
+
declare const XYZ_TO_SRGB: number[][];
|
|
670
|
+
declare const GAMUT_EPSILON = 0.000001;
|
|
671
|
+
declare const PRECISION = 5;
|
|
672
|
+
declare const RAD2DEG: number;
|
|
673
|
+
|
|
674
|
+
declare function srgbGammaDecode(input: number): number;
|
|
675
|
+
declare function srgbGammaEncode(input: number): number;
|
|
676
|
+
|
|
677
|
+
declare function isInGamut(color: ColorTuple): boolean;
|
|
678
|
+
declare function oklabToLinearP3(L: number, a: number, b: number): ColorTuple;
|
|
679
|
+
declare function oklabToLinearSRGB(L: number, a: number, b: number): ColorTuple;
|
|
680
|
+
|
|
661
681
|
/**
|
|
662
682
|
* Get the step keys for a given step count.
|
|
663
683
|
*
|
|
@@ -901,6 +921,18 @@ declare function saturate(input: string, amount: number, format?: ColorType): st
|
|
|
901
921
|
|
|
902
922
|
type ScaleMode = 'light' | 'dark';
|
|
903
923
|
type ScaleVariant = 'deep' | 'neutral' | 'pastel' | 'subtle' | 'vibrant';
|
|
924
|
+
/**
|
|
925
|
+
* Parabolic chroma curve with a movable center.
|
|
926
|
+
*/
|
|
927
|
+
interface ScaleChromaPeak {
|
|
928
|
+
/** Blend between constant chroma (0) and the full parabola (1). */
|
|
929
|
+
amount: number;
|
|
930
|
+
/**
|
|
931
|
+
* Lightness (exclusive 0-1) where chroma stays at full base.
|
|
932
|
+
* @default 0.5
|
|
933
|
+
*/
|
|
934
|
+
peak?: number;
|
|
935
|
+
}
|
|
904
936
|
/**
|
|
905
937
|
* Options for generating a color scale.
|
|
906
938
|
*
|
|
@@ -911,14 +943,29 @@ type ScaleVariant = 'deep' | 'neutral' | 'pastel' | 'subtle' | 'vibrant';
|
|
|
911
943
|
*/
|
|
912
944
|
interface ScaleOptions {
|
|
913
945
|
/**
|
|
914
|
-
* Controls chroma
|
|
946
|
+
* Controls how chroma flows across the scale. Three forms:
|
|
947
|
+
*
|
|
948
|
+
* Scalar (0-1) — parabolic blend centered at mid-lightness:
|
|
915
949
|
* - 0: Constant chroma across all steps (default).
|
|
916
|
-
* - 1:
|
|
917
|
-
*
|
|
950
|
+
* - 1: Full parabola — peak chroma at mid-lightness, reduced toward extremes.
|
|
951
|
+
* Shorthand for `{ amount: x }`.
|
|
952
|
+
*
|
|
953
|
+
* `{ amount, peak }` — the same parabola with a movable center.
|
|
954
|
+
* `peak` is the lightness (exclusive 0-1) that keeps full base chroma;
|
|
955
|
+
* sides away from it are reduced. Defaults to 0.5.
|
|
956
|
+
*
|
|
957
|
+
* `{ low, high }` — fractions (0-1) of the maximum P3 chroma at each step,
|
|
958
|
+
* blended from `low` (50-end) through the input color's own fraction at the
|
|
959
|
+
* lock/middle step to `high` (950-end). NOT equivalent to the scalar form —
|
|
960
|
+
* it is a different model: values set chroma relative to the gamut ceiling
|
|
961
|
+
* instead of bending the input's chroma. Being gamut-relative, the input's
|
|
962
|
+
* chroma matters only at the anchor step; an achromatic input collapses the
|
|
963
|
+
* anchor fraction to 0, yielding a V-shaped, colored scale (full at the ends,
|
|
964
|
+
* gray at the anchor).
|
|
918
965
|
*
|
|
919
966
|
* @default 0
|
|
920
967
|
*/
|
|
921
|
-
chromaCurve?: number;
|
|
968
|
+
chromaCurve?: number | ScaleChromaPeak | ScaleRange;
|
|
922
969
|
/**
|
|
923
970
|
* Output color format.
|
|
924
971
|
*
|
|
@@ -927,14 +974,36 @@ interface ScaleOptions {
|
|
|
927
974
|
* If not specified, the output will match the format of the input color.
|
|
928
975
|
*/
|
|
929
976
|
format?: ColorType;
|
|
977
|
+
/**
|
|
978
|
+
* Hue rotation across the scale, in degrees.
|
|
979
|
+
*
|
|
980
|
+
* A scalar `x` is shorthand for `{ low: -x, high: x }`.
|
|
981
|
+
* `low` shifts the low-key end (50), `high` the high-key end (950); shifts
|
|
982
|
+
* blend to 0° at the lock step (or the middle step when not locked), so the
|
|
983
|
+
* input hue is preserved there. The per-step gamut clamp follows the
|
|
984
|
+
* shifted hue.
|
|
985
|
+
*
|
|
986
|
+
* Values must be within [-180, 180].
|
|
987
|
+
*
|
|
988
|
+
* @default 0
|
|
989
|
+
*/
|
|
990
|
+
hueShift?: number | ScaleRange;
|
|
930
991
|
/**
|
|
931
992
|
* The lightness tuning factor for the scale.
|
|
932
993
|
* - 1: Linear lightness distribution.
|
|
933
994
|
* - >1: Lighter tones are emphasized.
|
|
934
995
|
* - <1: Darker tones are emphasized.
|
|
996
|
+
*
|
|
997
|
+
* A scalar `x` is shorthand for `{ low: x, high: x }`. With `{ low, high }`
|
|
998
|
+
* each half of the scale gets its own exponent: `low` shapes the low-key
|
|
999
|
+
* half (toward 50), `high` the high-key half (toward 950), split at the
|
|
1000
|
+
* lock step when locked or blended continuously when not.
|
|
1001
|
+
* Reference palettes typically fit `{ low: 1.5, high: 1 }`.
|
|
1002
|
+
*
|
|
1003
|
+
* Values must be greater than 0.
|
|
935
1004
|
* @default 1.5
|
|
936
1005
|
*/
|
|
937
|
-
lightnessCurve?: number;
|
|
1006
|
+
lightnessCurve?: number | ScaleRange;
|
|
938
1007
|
/**
|
|
939
1008
|
* Lock input color's lightness at specific step position.
|
|
940
1009
|
*
|
|
@@ -945,6 +1014,11 @@ interface ScaleOptions {
|
|
|
945
1014
|
* Must be a valid step key for the current step count.
|
|
946
1015
|
* Default step keys (11 steps): 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950.
|
|
947
1016
|
* Step keys vary based on the `steps` option (3-20 steps supported).
|
|
1017
|
+
*
|
|
1018
|
+
* When locked at the first or last step, only one side of the scale remains,
|
|
1019
|
+
* so the unused-side value (`low`/`high`) of asymmetric options
|
|
1020
|
+
* (`hueShift`, `lightnessCurve`, endpoint `chromaCurve`) has no effect and
|
|
1021
|
+
* emits a warning.
|
|
948
1022
|
*/
|
|
949
1023
|
lock?: number;
|
|
950
1024
|
/**
|
|
@@ -1002,6 +1076,16 @@ interface ScaleOptions {
|
|
|
1002
1076
|
*/
|
|
1003
1077
|
variant?: ScaleVariant;
|
|
1004
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Endpoint values for an asymmetric scale option.
|
|
1081
|
+
*
|
|
1082
|
+
* `low` applies at the low-key end (50), `high` at the high-key end (950),
|
|
1083
|
+
* regardless of `mode` — keys, not lightness, define the ends.
|
|
1084
|
+
*/
|
|
1085
|
+
interface ScaleRange {
|
|
1086
|
+
high: number;
|
|
1087
|
+
low: number;
|
|
1088
|
+
}
|
|
1005
1089
|
/**
|
|
1006
1090
|
* Generate a scale of colors based on the input color.
|
|
1007
1091
|
*
|
|
@@ -1058,4 +1142,4 @@ declare function toGamut(input: string, format?: ColorType): string;
|
|
|
1058
1142
|
*/
|
|
1059
1143
|
declare function transparentize(input: string, alpha: number, format?: ColorType): string;
|
|
1060
1144
|
|
|
1061
|
-
export { APCA_VERSION, type Analysis, type ColorKeysTuple, type ColorModel, type ColorModelKey, type ColorModelKeys, type ColorReturn, type ColorTuple, type ColorType, type ColorTypeInput, type ColorValue, type ColorizrOptions, type ConverterParameters, DELTA_E_JND, type FormatCSSOptions, type HEX, type HSL, type HueMode, type LAB, type LCH, type MixOptions, type PaletteOptions, type PlainObject, type RGB, type ReadableColorMethod, type ReadableColorOptions, type ScaleOptions, type ScaleVariant, type Scheme, type SchemeOptions, addAlphaToHex, apcaContrast, brightnessDifference, chroma, colorDifference, compare, contrast, convertAlphaToHex, convertCSS, darken, Colorizr as default, deltaE, desaturate, extractAlphaFromHex, extractColorParts, formatCSS, formatHex, getColorType, getP3MaxChroma, getP3MaxColor, getScaleStepKeys, grayscale, hex2hsl, hex2oklab, hex2oklch, hex2rgb, hsl2hex, hsl2oklab, hsl2oklch, hsl2rgb, invert, isHSL, isHex, isLAB, isLCH, isRGB, isValidColor, lighten, luminance, mix, name, oklab2hex, oklab2hsl, oklab2oklch, oklab2rgb, oklch2hex, oklch2hsl, oklch2oklab, oklch2rgb, opacify, opacity, palette, parseCSS, random, readableColor, removeAlphaFromHex, rgb2hex, rgb2hsl, rgb2oklab, rgb2oklch, rotate, saturate, scale, scheme, toGamut, transparentize };
|
|
1145
|
+
export { APCA_VERSION, type Analysis, CLMS_TO_OKLAB, type ColorKeysTuple, type ColorModel, type ColorModelKey, type ColorModelKeys, type ColorReturn, type ColorTuple, type ColorType, type ColorTypeInput, type ColorValue, type ColorizrOptions, type ConverterParameters, DEG2RAD, DELTA_E_JND, type FormatCSSOptions, GAMUT_EPSILON, type HEX, type HSL, type HueMode, type LAB, type LCH, LMS_TO_LRGB, LRGB_TO_LMS, type MixOptions, OKLAB_TO_CLMS, P3_TO_SRGB, P3_TO_XYZ, PRECISION, type PaletteOptions, type PlainObject, RAD2DEG, type RGB, type ReadableColorMethod, type ReadableColorOptions, SRGB_TO_P3, type ScaleChromaPeak, type ScaleOptions, type ScaleRange, type ScaleVariant, type Scheme, type SchemeOptions, XYZ_TO_SRGB, addAlphaToHex, apcaContrast, brightnessDifference, chroma, colorDifference, compare, contrast, convertAlphaToHex, convertCSS, darken, Colorizr as default, deltaE, desaturate, extractAlphaFromHex, extractColorParts, formatCSS, formatHex, getColorType, getP3MaxChroma, getP3MaxColor, getScaleStepKeys, grayscale, hex2hsl, hex2oklab, hex2oklch, hex2rgb, hsl2hex, hsl2oklab, hsl2oklch, hsl2rgb, invert, isHSL, isHex, isInGamut, isLAB, isLCH, isRGB, isValidColor, lighten, luminance, mix, name, oklab2hex, oklab2hsl, oklab2oklch, oklab2rgb, oklabToLinearP3, oklabToLinearSRGB, oklch2hex, oklch2hsl, oklch2oklab, oklch2rgb, opacify, opacity, palette, parseCSS, random, readableColor, removeAlphaFromHex, rgb2hex, rgb2hsl, rgb2oklab, rgb2oklch, rotate, saturate, scale, scheme, srgbGammaDecode, srgbGammaEncode, toGamut, transparentize };
|
package/dist/index.d.ts
CHANGED
|
@@ -658,6 +658,26 @@ declare function extractAlphaFromHex(input: string): number;
|
|
|
658
658
|
*/
|
|
659
659
|
declare function removeAlphaFromHex(input: string): HEX;
|
|
660
660
|
|
|
661
|
+
declare const CLMS_TO_OKLAB: number[][];
|
|
662
|
+
declare const DEG2RAD: number;
|
|
663
|
+
declare const LMS_TO_LRGB: number[][];
|
|
664
|
+
declare const LRGB_TO_LMS: number[][];
|
|
665
|
+
declare const OKLAB_TO_CLMS: number[][];
|
|
666
|
+
declare const P3_TO_SRGB: number[][];
|
|
667
|
+
declare const P3_TO_XYZ: number[][];
|
|
668
|
+
declare const SRGB_TO_P3: number[][];
|
|
669
|
+
declare const XYZ_TO_SRGB: number[][];
|
|
670
|
+
declare const GAMUT_EPSILON = 0.000001;
|
|
671
|
+
declare const PRECISION = 5;
|
|
672
|
+
declare const RAD2DEG: number;
|
|
673
|
+
|
|
674
|
+
declare function srgbGammaDecode(input: number): number;
|
|
675
|
+
declare function srgbGammaEncode(input: number): number;
|
|
676
|
+
|
|
677
|
+
declare function isInGamut(color: ColorTuple): boolean;
|
|
678
|
+
declare function oklabToLinearP3(L: number, a: number, b: number): ColorTuple;
|
|
679
|
+
declare function oklabToLinearSRGB(L: number, a: number, b: number): ColorTuple;
|
|
680
|
+
|
|
661
681
|
/**
|
|
662
682
|
* Get the step keys for a given step count.
|
|
663
683
|
*
|
|
@@ -901,6 +921,18 @@ declare function saturate(input: string, amount: number, format?: ColorType): st
|
|
|
901
921
|
|
|
902
922
|
type ScaleMode = 'light' | 'dark';
|
|
903
923
|
type ScaleVariant = 'deep' | 'neutral' | 'pastel' | 'subtle' | 'vibrant';
|
|
924
|
+
/**
|
|
925
|
+
* Parabolic chroma curve with a movable center.
|
|
926
|
+
*/
|
|
927
|
+
interface ScaleChromaPeak {
|
|
928
|
+
/** Blend between constant chroma (0) and the full parabola (1). */
|
|
929
|
+
amount: number;
|
|
930
|
+
/**
|
|
931
|
+
* Lightness (exclusive 0-1) where chroma stays at full base.
|
|
932
|
+
* @default 0.5
|
|
933
|
+
*/
|
|
934
|
+
peak?: number;
|
|
935
|
+
}
|
|
904
936
|
/**
|
|
905
937
|
* Options for generating a color scale.
|
|
906
938
|
*
|
|
@@ -911,14 +943,29 @@ type ScaleVariant = 'deep' | 'neutral' | 'pastel' | 'subtle' | 'vibrant';
|
|
|
911
943
|
*/
|
|
912
944
|
interface ScaleOptions {
|
|
913
945
|
/**
|
|
914
|
-
* Controls chroma
|
|
946
|
+
* Controls how chroma flows across the scale. Three forms:
|
|
947
|
+
*
|
|
948
|
+
* Scalar (0-1) — parabolic blend centered at mid-lightness:
|
|
915
949
|
* - 0: Constant chroma across all steps (default).
|
|
916
|
-
* - 1:
|
|
917
|
-
*
|
|
950
|
+
* - 1: Full parabola — peak chroma at mid-lightness, reduced toward extremes.
|
|
951
|
+
* Shorthand for `{ amount: x }`.
|
|
952
|
+
*
|
|
953
|
+
* `{ amount, peak }` — the same parabola with a movable center.
|
|
954
|
+
* `peak` is the lightness (exclusive 0-1) that keeps full base chroma;
|
|
955
|
+
* sides away from it are reduced. Defaults to 0.5.
|
|
956
|
+
*
|
|
957
|
+
* `{ low, high }` — fractions (0-1) of the maximum P3 chroma at each step,
|
|
958
|
+
* blended from `low` (50-end) through the input color's own fraction at the
|
|
959
|
+
* lock/middle step to `high` (950-end). NOT equivalent to the scalar form —
|
|
960
|
+
* it is a different model: values set chroma relative to the gamut ceiling
|
|
961
|
+
* instead of bending the input's chroma. Being gamut-relative, the input's
|
|
962
|
+
* chroma matters only at the anchor step; an achromatic input collapses the
|
|
963
|
+
* anchor fraction to 0, yielding a V-shaped, colored scale (full at the ends,
|
|
964
|
+
* gray at the anchor).
|
|
918
965
|
*
|
|
919
966
|
* @default 0
|
|
920
967
|
*/
|
|
921
|
-
chromaCurve?: number;
|
|
968
|
+
chromaCurve?: number | ScaleChromaPeak | ScaleRange;
|
|
922
969
|
/**
|
|
923
970
|
* Output color format.
|
|
924
971
|
*
|
|
@@ -927,14 +974,36 @@ interface ScaleOptions {
|
|
|
927
974
|
* If not specified, the output will match the format of the input color.
|
|
928
975
|
*/
|
|
929
976
|
format?: ColorType;
|
|
977
|
+
/**
|
|
978
|
+
* Hue rotation across the scale, in degrees.
|
|
979
|
+
*
|
|
980
|
+
* A scalar `x` is shorthand for `{ low: -x, high: x }`.
|
|
981
|
+
* `low` shifts the low-key end (50), `high` the high-key end (950); shifts
|
|
982
|
+
* blend to 0° at the lock step (or the middle step when not locked), so the
|
|
983
|
+
* input hue is preserved there. The per-step gamut clamp follows the
|
|
984
|
+
* shifted hue.
|
|
985
|
+
*
|
|
986
|
+
* Values must be within [-180, 180].
|
|
987
|
+
*
|
|
988
|
+
* @default 0
|
|
989
|
+
*/
|
|
990
|
+
hueShift?: number | ScaleRange;
|
|
930
991
|
/**
|
|
931
992
|
* The lightness tuning factor for the scale.
|
|
932
993
|
* - 1: Linear lightness distribution.
|
|
933
994
|
* - >1: Lighter tones are emphasized.
|
|
934
995
|
* - <1: Darker tones are emphasized.
|
|
996
|
+
*
|
|
997
|
+
* A scalar `x` is shorthand for `{ low: x, high: x }`. With `{ low, high }`
|
|
998
|
+
* each half of the scale gets its own exponent: `low` shapes the low-key
|
|
999
|
+
* half (toward 50), `high` the high-key half (toward 950), split at the
|
|
1000
|
+
* lock step when locked or blended continuously when not.
|
|
1001
|
+
* Reference palettes typically fit `{ low: 1.5, high: 1 }`.
|
|
1002
|
+
*
|
|
1003
|
+
* Values must be greater than 0.
|
|
935
1004
|
* @default 1.5
|
|
936
1005
|
*/
|
|
937
|
-
lightnessCurve?: number;
|
|
1006
|
+
lightnessCurve?: number | ScaleRange;
|
|
938
1007
|
/**
|
|
939
1008
|
* Lock input color's lightness at specific step position.
|
|
940
1009
|
*
|
|
@@ -945,6 +1014,11 @@ interface ScaleOptions {
|
|
|
945
1014
|
* Must be a valid step key for the current step count.
|
|
946
1015
|
* Default step keys (11 steps): 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950.
|
|
947
1016
|
* Step keys vary based on the `steps` option (3-20 steps supported).
|
|
1017
|
+
*
|
|
1018
|
+
* When locked at the first or last step, only one side of the scale remains,
|
|
1019
|
+
* so the unused-side value (`low`/`high`) of asymmetric options
|
|
1020
|
+
* (`hueShift`, `lightnessCurve`, endpoint `chromaCurve`) has no effect and
|
|
1021
|
+
* emits a warning.
|
|
948
1022
|
*/
|
|
949
1023
|
lock?: number;
|
|
950
1024
|
/**
|
|
@@ -1002,6 +1076,16 @@ interface ScaleOptions {
|
|
|
1002
1076
|
*/
|
|
1003
1077
|
variant?: ScaleVariant;
|
|
1004
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Endpoint values for an asymmetric scale option.
|
|
1081
|
+
*
|
|
1082
|
+
* `low` applies at the low-key end (50), `high` at the high-key end (950),
|
|
1083
|
+
* regardless of `mode` — keys, not lightness, define the ends.
|
|
1084
|
+
*/
|
|
1085
|
+
interface ScaleRange {
|
|
1086
|
+
high: number;
|
|
1087
|
+
low: number;
|
|
1088
|
+
}
|
|
1005
1089
|
/**
|
|
1006
1090
|
* Generate a scale of colors based on the input color.
|
|
1007
1091
|
*
|
|
@@ -1058,4 +1142,4 @@ declare function toGamut(input: string, format?: ColorType): string;
|
|
|
1058
1142
|
*/
|
|
1059
1143
|
declare function transparentize(input: string, alpha: number, format?: ColorType): string;
|
|
1060
1144
|
|
|
1061
|
-
export { APCA_VERSION, type Analysis, type ColorKeysTuple, type ColorModel, type ColorModelKey, type ColorModelKeys, type ColorReturn, type ColorTuple, type ColorType, type ColorTypeInput, type ColorValue, type ColorizrOptions, type ConverterParameters, DELTA_E_JND, type FormatCSSOptions, type HEX, type HSL, type HueMode, type LAB, type LCH, type MixOptions, type PaletteOptions, type PlainObject, type RGB, type ReadableColorMethod, type ReadableColorOptions, type ScaleOptions, type ScaleVariant, type Scheme, type SchemeOptions, addAlphaToHex, apcaContrast, brightnessDifference, chroma, colorDifference, compare, contrast, convertAlphaToHex, convertCSS, darken, Colorizr as default, deltaE, desaturate, extractAlphaFromHex, extractColorParts, formatCSS, formatHex, getColorType, getP3MaxChroma, getP3MaxColor, getScaleStepKeys, grayscale, hex2hsl, hex2oklab, hex2oklch, hex2rgb, hsl2hex, hsl2oklab, hsl2oklch, hsl2rgb, invert, isHSL, isHex, isLAB, isLCH, isRGB, isValidColor, lighten, luminance, mix, name, oklab2hex, oklab2hsl, oklab2oklch, oklab2rgb, oklch2hex, oklch2hsl, oklch2oklab, oklch2rgb, opacify, opacity, palette, parseCSS, random, readableColor, removeAlphaFromHex, rgb2hex, rgb2hsl, rgb2oklab, rgb2oklch, rotate, saturate, scale, scheme, toGamut, transparentize };
|
|
1145
|
+
export { APCA_VERSION, type Analysis, CLMS_TO_OKLAB, type ColorKeysTuple, type ColorModel, type ColorModelKey, type ColorModelKeys, type ColorReturn, type ColorTuple, type ColorType, type ColorTypeInput, type ColorValue, type ColorizrOptions, type ConverterParameters, DEG2RAD, DELTA_E_JND, type FormatCSSOptions, GAMUT_EPSILON, type HEX, type HSL, type HueMode, type LAB, type LCH, LMS_TO_LRGB, LRGB_TO_LMS, type MixOptions, OKLAB_TO_CLMS, P3_TO_SRGB, P3_TO_XYZ, PRECISION, type PaletteOptions, type PlainObject, RAD2DEG, type RGB, type ReadableColorMethod, type ReadableColorOptions, SRGB_TO_P3, type ScaleChromaPeak, type ScaleOptions, type ScaleRange, type ScaleVariant, type Scheme, type SchemeOptions, XYZ_TO_SRGB, addAlphaToHex, apcaContrast, brightnessDifference, chroma, colorDifference, compare, contrast, convertAlphaToHex, convertCSS, darken, Colorizr as default, deltaE, desaturate, extractAlphaFromHex, extractColorParts, formatCSS, formatHex, getColorType, getP3MaxChroma, getP3MaxColor, getScaleStepKeys, grayscale, hex2hsl, hex2oklab, hex2oklch, hex2rgb, hsl2hex, hsl2oklab, hsl2oklch, hsl2rgb, invert, isHSL, isHex, isInGamut, isLAB, isLCH, isRGB, isValidColor, lighten, luminance, mix, name, oklab2hex, oklab2hsl, oklab2oklch, oklab2rgb, oklabToLinearP3, oklabToLinearSRGB, oklch2hex, oklch2hsl, oklch2oklab, oklch2rgb, opacify, opacity, palette, parseCSS, random, readableColor, removeAlphaFromHex, rgb2hex, rgb2hsl, rgb2oklab, rgb2oklch, rotate, saturate, scale, scheme, srgbGammaDecode, srgbGammaEncode, toGamut, transparentize };
|