@visulima/colorize 1.4.26 → 1.4.28

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.
Files changed (102) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +208 -12
  3. package/dist/ansi-codes.d.cts +18 -0
  4. package/dist/ansi-codes.d.mts +18 -0
  5. package/dist/ansi-codes.d.ts +18 -0
  6. package/dist/colorize.browser.d.mts +3 -0
  7. package/dist/colorize.server.d.cts +10 -0
  8. package/dist/colorize.server.d.mts +10 -0
  9. package/dist/colorize.server.d.ts +10 -0
  10. package/dist/css-code.d.mts +11 -0
  11. package/dist/gradient/gradient-builder.d.cts +10 -0
  12. package/dist/gradient/gradient-builder.d.mts +10 -0
  13. package/dist/gradient/gradient-builder.d.ts +10 -0
  14. package/dist/gradient/util/color-names.d.cts +2 -0
  15. package/dist/gradient/util/color-names.d.mts +2 -0
  16. package/dist/gradient/util/color-names.d.ts +2 -0
  17. package/dist/gradient/util/compute.d.cts +2 -0
  18. package/dist/gradient/util/compute.d.mts +2 -0
  19. package/dist/gradient/util/compute.d.ts +2 -0
  20. package/dist/gradient/util/hsv-to-rgb.d.cts +5 -0
  21. package/dist/gradient/util/hsv-to-rgb.d.mts +5 -0
  22. package/dist/gradient/util/hsv-to-rgb.d.ts +5 -0
  23. package/dist/gradient/util/interpolate.d.cts +3 -0
  24. package/dist/gradient/util/interpolate.d.mts +3 -0
  25. package/dist/gradient/util/interpolate.d.ts +3 -0
  26. package/dist/gradient/util/rgb-to-hsv.d.cts +9 -0
  27. package/dist/gradient/util/rgb-to-hsv.d.mts +9 -0
  28. package/dist/gradient/util/rgb-to-hsv.d.ts +9 -0
  29. package/dist/gradient.cjs +60 -3
  30. package/dist/gradient.d.cts +4 -16
  31. package/dist/gradient.d.mts +4 -16
  32. package/dist/gradient.d.ts +4 -16
  33. package/dist/gradient.mjs +54 -3
  34. package/dist/index.browser.d.mts +60 -64
  35. package/dist/index.browser.mjs +61 -1
  36. package/dist/index.server.cjs +246 -2
  37. package/dist/index.server.d.cts +7 -73
  38. package/dist/index.server.d.mts +60 -64
  39. package/dist/index.server.d.ts +8 -65
  40. package/dist/index.server.mjs +61 -1
  41. package/dist/packem_shared/Colorize-BenP3bFn.mjs +241 -0
  42. package/dist/packem_shared/Colorize-Ca9CXTcj.mjs +413 -0
  43. package/dist/packem_shared/GradientBuilder-Ba4Teq6P.mjs +487 -0
  44. package/dist/packem_shared/GradientBuilder-DjJK22kP.cjs +491 -0
  45. package/dist/packem_shared/colorize.server-BA3gZZXz.cjs +193 -0
  46. package/dist/packem_shared/colorize.server-ry9FZNfG.mjs +191 -0
  47. package/dist/packem_shared/convertHexToRgb-CWdAm2kE.mjs +13 -0
  48. package/dist/packem_shared/convertHexToRgb-DvkHBM3-.cjs +17 -0
  49. package/dist/packem_shared/rgbToAnsi256-BdS0fomP.mjs +41 -0
  50. package/dist/packem_shared/rgbToAnsi256-DL8eajTz.cjs +47 -0
  51. package/dist/template/make-colorize-template.d.cts +9 -0
  52. package/dist/template/make-colorize-template.d.mts +9 -0
  53. package/dist/template/make-colorize-template.d.ts +9 -0
  54. package/dist/template/make-template.d.cts +10 -0
  55. package/dist/template/make-template.d.mts +10 -0
  56. package/dist/template/make-template.d.ts +10 -0
  57. package/dist/template.cjs +144 -2
  58. package/dist/template.d.cts +5 -11
  59. package/dist/template.d.mts +5 -7
  60. package/dist/template.d.ts +5 -11
  61. package/dist/template.mjs +138 -2
  62. package/dist/types.d.cts +174 -0
  63. package/dist/types.d.mts +174 -0
  64. package/dist/types.d.ts +174 -0
  65. package/dist/util/ansi-code-hex-map.d.mts +8 -0
  66. package/dist/util/clamp.d.cts +12 -0
  67. package/dist/util/clamp.d.mts +12 -0
  68. package/dist/util/clamp.d.ts +12 -0
  69. package/dist/util/convert-hex-to-rgb.d.cts +22 -0
  70. package/dist/util/convert-hex-to-rgb.d.mts +22 -0
  71. package/dist/util/convert-hex-to-rgb.d.ts +22 -0
  72. package/dist/util/convert-rgb-to-ansi.d.cts +18 -0
  73. package/dist/util/convert-rgb-to-ansi.d.mts +18 -0
  74. package/dist/util/convert-rgb-to-ansi.d.ts +18 -0
  75. package/dist/util/string-replace-all.d.cts +12 -0
  76. package/dist/util/string-replace-all.d.mts +12 -0
  77. package/dist/util/string-replace-all.d.ts +12 -0
  78. package/dist/util/unescape.d.cts +9 -0
  79. package/dist/util/unescape.d.mts +9 -0
  80. package/dist/util/unescape.d.ts +9 -0
  81. package/dist/utils.cjs +13 -1
  82. package/dist/utils.d.cts +2 -9
  83. package/dist/utils.d.mts +2 -9
  84. package/dist/utils.d.ts +2 -9
  85. package/dist/utils.mjs +2 -1
  86. package/package.json +2 -2
  87. package/dist/index.browser.d.ts +0 -65
  88. package/dist/packem_shared/Colorize-BHcGWJJ0.mjs +0 -1
  89. package/dist/packem_shared/Colorize-CFUl2AHz.mjs +0 -2
  90. package/dist/packem_shared/GradientBuilder-D6w_X2D1.cjs +0 -1
  91. package/dist/packem_shared/GradientBuilder-DnPdd2Cf.mjs +0 -1
  92. package/dist/packem_shared/colorize.server-BX0i6nN6.cjs +0 -2
  93. package/dist/packem_shared/colorize.server-BkwhBIE0.mjs +0 -2
  94. package/dist/packem_shared/convertHexToRgb-BEnfEytq.cjs +0 -1
  95. package/dist/packem_shared/convertHexToRgb-DGcGUKnj.mjs +0 -1
  96. package/dist/packem_shared/rgbToAnsi256--f09kvlF.cjs +0 -1
  97. package/dist/packem_shared/rgbToAnsi256-YETEPW8R.mjs +0 -1
  98. package/dist/packem_shared/types-CuuGv4d0.d.cts +0 -81
  99. package/dist/packem_shared/types-CuuGv4d0.d.mts +0 -81
  100. package/dist/packem_shared/types-CuuGv4d0.d.ts +0 -81
  101. package/dist/packem_shared/types-M28Oe2t1.d.mts +0 -67
  102. package/dist/packem_shared/types-M28Oe2t1.d.ts +0 -67
@@ -1,81 +0,0 @@
1
- type ColorValueHex = `#${string}`;
2
- interface ColorizeType {
3
- (string: number | string): string;
4
- (string: TemplateStringsArray, ...parameters: string[]): string;
5
- ansi256: (code: number) => this;
6
- bg: (code: number) => this;
7
- bgAnsi256: (code: number) => this;
8
- readonly bgBlack: this;
9
- readonly bgBlackBright: this;
10
- readonly bgBlue: this;
11
- readonly bgBlueBright: this;
12
- readonly bgCyan: this;
13
- readonly bgCyanBright: this;
14
- readonly bgGray: this;
15
- readonly bgGreen: this;
16
- readonly bgGreenBright: this;
17
- readonly bgGrey: this;
18
- bgHex: (color: ColorValueHex) => this;
19
- readonly bgMagenta: this;
20
- readonly bgMagentaBright: this;
21
- readonly bgRed: this;
22
- readonly bgRedBright: this;
23
- bgRgb: (red: number, green: number, blue: number) => this;
24
- readonly bgWhite: this;
25
- readonly bgWhiteBright: this;
26
- readonly bgYellow: this;
27
- readonly bgYellowBright: this;
28
- readonly black: this;
29
- readonly blackBright: this;
30
- readonly blue: this;
31
- readonly blueBright: this;
32
- readonly bold: this;
33
- readonly close: string;
34
- readonly cyan: this;
35
- readonly cyanBright: this;
36
- readonly dim: this;
37
- fg: (code: number) => this;
38
- readonly gray: this;
39
- readonly green: this;
40
- readonly greenBright: this;
41
- readonly grey: this;
42
- hex: (color: ColorValueHex) => this;
43
- readonly hidden: this;
44
- readonly inverse: this;
45
- readonly italic: this;
46
- readonly magenta: this;
47
- readonly magentaBright: this;
48
- readonly open: string;
49
- readonly overline: this;
50
- readonly red: this;
51
- readonly redBright: this;
52
- readonly reset: this;
53
- rgb: (red: number, green: number, blue: number) => this;
54
- readonly strike: this;
55
- readonly strikethrough: this;
56
- strip: (string: string) => string;
57
- readonly underline: this;
58
- readonly visible: this;
59
- readonly white: this;
60
- readonly whiteBright: this;
61
- readonly yellow: this;
62
- readonly yellowBright: this;
63
- }
64
- type CssColorName = "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen";
65
- type StopInput = {
66
- color?: ColorValueHex | CssColorName | RGB | [number, number, number];
67
- colorLess?: boolean;
68
- position: number;
69
- };
70
- type StopOutput = {
71
- color: [number, number, number] | undefined;
72
- colorLess?: boolean;
73
- position: number;
74
- };
75
- type RGB = {
76
- b: number;
77
- g: number;
78
- r: number;
79
- };
80
-
81
- export type { ColorizeType as C, RGB as R, StopOutput as S, ColorValueHex as a, CssColorName as b, StopInput as c };
@@ -1,81 +0,0 @@
1
- type ColorValueHex = `#${string}`;
2
- interface ColorizeType {
3
- (string: number | string): string;
4
- (string: TemplateStringsArray, ...parameters: string[]): string;
5
- ansi256: (code: number) => this;
6
- bg: (code: number) => this;
7
- bgAnsi256: (code: number) => this;
8
- readonly bgBlack: this;
9
- readonly bgBlackBright: this;
10
- readonly bgBlue: this;
11
- readonly bgBlueBright: this;
12
- readonly bgCyan: this;
13
- readonly bgCyanBright: this;
14
- readonly bgGray: this;
15
- readonly bgGreen: this;
16
- readonly bgGreenBright: this;
17
- readonly bgGrey: this;
18
- bgHex: (color: ColorValueHex) => this;
19
- readonly bgMagenta: this;
20
- readonly bgMagentaBright: this;
21
- readonly bgRed: this;
22
- readonly bgRedBright: this;
23
- bgRgb: (red: number, green: number, blue: number) => this;
24
- readonly bgWhite: this;
25
- readonly bgWhiteBright: this;
26
- readonly bgYellow: this;
27
- readonly bgYellowBright: this;
28
- readonly black: this;
29
- readonly blackBright: this;
30
- readonly blue: this;
31
- readonly blueBright: this;
32
- readonly bold: this;
33
- readonly close: string;
34
- readonly cyan: this;
35
- readonly cyanBright: this;
36
- readonly dim: this;
37
- fg: (code: number) => this;
38
- readonly gray: this;
39
- readonly green: this;
40
- readonly greenBright: this;
41
- readonly grey: this;
42
- hex: (color: ColorValueHex) => this;
43
- readonly hidden: this;
44
- readonly inverse: this;
45
- readonly italic: this;
46
- readonly magenta: this;
47
- readonly magentaBright: this;
48
- readonly open: string;
49
- readonly overline: this;
50
- readonly red: this;
51
- readonly redBright: this;
52
- readonly reset: this;
53
- rgb: (red: number, green: number, blue: number) => this;
54
- readonly strike: this;
55
- readonly strikethrough: this;
56
- strip: (string: string) => string;
57
- readonly underline: this;
58
- readonly visible: this;
59
- readonly white: this;
60
- readonly whiteBright: this;
61
- readonly yellow: this;
62
- readonly yellowBright: this;
63
- }
64
- type CssColorName = "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen";
65
- type StopInput = {
66
- color?: ColorValueHex | CssColorName | RGB | [number, number, number];
67
- colorLess?: boolean;
68
- position: number;
69
- };
70
- type StopOutput = {
71
- color: [number, number, number] | undefined;
72
- colorLess?: boolean;
73
- position: number;
74
- };
75
- type RGB = {
76
- b: number;
77
- g: number;
78
- r: number;
79
- };
80
-
81
- export type { ColorizeType as C, RGB as R, StopOutput as S, ColorValueHex as a, CssColorName as b, StopInput as c };
@@ -1,67 +0,0 @@
1
- type ColorValueHex = `#${string}`;
2
- interface ColorizeType {
3
- (string: number | string): string;
4
- (string: TemplateStringsArray, ...parameters: string[]): string;
5
- ansi256: (code: number) => this;
6
- bg: (code: number) => this;
7
- bgAnsi256: (code: number) => this;
8
- readonly bgBlack: this;
9
- readonly bgBlackBright: this;
10
- readonly bgBlue: this;
11
- readonly bgBlueBright: this;
12
- readonly bgCyan: this;
13
- readonly bgCyanBright: this;
14
- readonly bgGray: this;
15
- readonly bgGreen: this;
16
- readonly bgGreenBright: this;
17
- readonly bgGrey: this;
18
- bgHex: (color: ColorValueHex) => this;
19
- readonly bgMagenta: this;
20
- readonly bgMagentaBright: this;
21
- readonly bgRed: this;
22
- readonly bgRedBright: this;
23
- bgRgb: (red: number, green: number, blue: number) => this;
24
- readonly bgWhite: this;
25
- readonly bgWhiteBright: this;
26
- readonly bgYellow: this;
27
- readonly bgYellowBright: this;
28
- readonly black: this;
29
- readonly blackBright: this;
30
- readonly blue: this;
31
- readonly blueBright: this;
32
- readonly bold: this;
33
- readonly close: string;
34
- readonly cyan: this;
35
- readonly cyanBright: this;
36
- readonly dim: this;
37
- fg: (code: number) => this;
38
- readonly gray: this;
39
- readonly green: this;
40
- readonly greenBright: this;
41
- readonly grey: this;
42
- hex: (color: ColorValueHex) => this;
43
- readonly hidden: this;
44
- readonly inverse: this;
45
- readonly italic: this;
46
- readonly magenta: this;
47
- readonly magentaBright: this;
48
- readonly open: string;
49
- readonly overline: this;
50
- readonly red: this;
51
- readonly redBright: this;
52
- readonly reset: this;
53
- rgb: (red: number, green: number, blue: number) => this;
54
- readonly strike: this;
55
- readonly strikethrough: this;
56
- strip: (string: string) => string;
57
- readonly underline: this;
58
- readonly visible: this;
59
- readonly white: this;
60
- readonly whiteBright: this;
61
- readonly yellow: this;
62
- readonly yellowBright: this;
63
- }
64
- type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
65
- type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
66
-
67
- export type { AnsiColors as A, ColorizeType as C, ColorValueHex as a, AnsiStyles as b };
@@ -1,67 +0,0 @@
1
- type ColorValueHex = `#${string}`;
2
- interface ColorizeType {
3
- (string: number | string): string;
4
- (string: TemplateStringsArray, ...parameters: string[]): string;
5
- ansi256: (code: number) => this;
6
- bg: (code: number) => this;
7
- bgAnsi256: (code: number) => this;
8
- readonly bgBlack: this;
9
- readonly bgBlackBright: this;
10
- readonly bgBlue: this;
11
- readonly bgBlueBright: this;
12
- readonly bgCyan: this;
13
- readonly bgCyanBright: this;
14
- readonly bgGray: this;
15
- readonly bgGreen: this;
16
- readonly bgGreenBright: this;
17
- readonly bgGrey: this;
18
- bgHex: (color: ColorValueHex) => this;
19
- readonly bgMagenta: this;
20
- readonly bgMagentaBright: this;
21
- readonly bgRed: this;
22
- readonly bgRedBright: this;
23
- bgRgb: (red: number, green: number, blue: number) => this;
24
- readonly bgWhite: this;
25
- readonly bgWhiteBright: this;
26
- readonly bgYellow: this;
27
- readonly bgYellowBright: this;
28
- readonly black: this;
29
- readonly blackBright: this;
30
- readonly blue: this;
31
- readonly blueBright: this;
32
- readonly bold: this;
33
- readonly close: string;
34
- readonly cyan: this;
35
- readonly cyanBright: this;
36
- readonly dim: this;
37
- fg: (code: number) => this;
38
- readonly gray: this;
39
- readonly green: this;
40
- readonly greenBright: this;
41
- readonly grey: this;
42
- hex: (color: ColorValueHex) => this;
43
- readonly hidden: this;
44
- readonly inverse: this;
45
- readonly italic: this;
46
- readonly magenta: this;
47
- readonly magentaBright: this;
48
- readonly open: string;
49
- readonly overline: this;
50
- readonly red: this;
51
- readonly redBright: this;
52
- readonly reset: this;
53
- rgb: (red: number, green: number, blue: number) => this;
54
- readonly strike: this;
55
- readonly strikethrough: this;
56
- strip: (string: string) => string;
57
- readonly underline: this;
58
- readonly visible: this;
59
- readonly white: this;
60
- readonly whiteBright: this;
61
- readonly yellow: this;
62
- readonly yellowBright: this;
63
- }
64
- type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
65
- type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
66
-
67
- export type { AnsiColors as A, ColorizeType as C, ColorValueHex as a, AnsiStyles as b };