···11import {type HexCode, type HslColor, type RgbColor} from '#/alf/util/colors'
2233/**
44- * Converts a hexcode string in the format `"#RRGGBB"` to a `HslColor` object (`{ h: number, s: number, l: number }`).
44+ * Converts a hexcode string in the format `"#RRGGBB"` to a `HslColor` object (`{ h: number, s: number, l: number, a: number}`).
55 * @param {HexCode} hex - A hexcode string in the format `#RRGGBB`. The leading "#" symbol is optional.
66 * @returns{HslColor} A HSL colour object.
77 */
···5151}
52525353/**
5454- * Converts a `HslColor` object (`{ h: number, s: number, l: number }`) to a hexcode string in the format `"#RRGGBB"`.
5454+ * Converts a `HslColor` object (`{ h: number, s: number, l: number, a: number }`) to a hexcode string in the format `"#RRGGBB"`.
5555 * @param {HslColor} hsl - A HSL colour object.
5656 * @param {boolean} appendSymbol - Whether to append "#" to the start of the hex string. Defaults to true.
5757 * @returns {HexCode} A hexcode string in the format `"#RRGGBB"`. The leading "#" symbol is optional.
···9797}
98989999/**
100100- * Converts an `RgbColor` object (`{ r: number, g: number, b: number }`) to a hexcode string in the format `"#RRGGBB"`.
100100+ * Converts an `RgbColor` object (`{ r: number, g: number, b: number, a: number }`) to a hexcode string in the format `"#RRGGBB"`.
101101 * @param {RgbColor} rgb - An RGB colour object.
102102 * @param {boolean} appendSymbol - Whether to append "#" to the start of the hex string. Defaults to true.
103103 * @returns {HexCode} A hexcode string in the format `"#RRGGBB"`. The leading "#" symbol is optional.
···110110}
111111112112/**
113113- * Converts a hexcode string in the format `"#RRGGBB"` to an `RgbColor` object (`{ r: number, g: number, b: number }`).
113113+ * Converts a hexcode string in the format `"#RRGGBB"` to an `RgbColor` object (`{ r: number, g: number, b: number, a: number }`).
114114 * @param {HexCode} hex - A hexcode string in the format `#RRGGBB`. The leading "#" symbol is optional.
115115 * @returns {RgbColor} An RGB colour object.
116116 */
···124124}
125125126126/**
127127- * Converts an `RgbColor` object (`{ r: number, g: number, b: number }`) to a `HslColor` object (`{ h: number, s: number, l: number }`)
127127+ * Converts an `RgbColor` object (`{ r: number, g: number, b: number, a: number }`) to a `HslColor` object (`{ h: number, s: number, l: number, a: number }`)
128128 * @param {RgbColor} - An RGB colour object.
129129 * @returns {HslColor} A HSL colour object.
130130 */
···170170}
171171172172/**
173173- * Converts a `HslColor` object (`{ h: number, s: number, l: number }`) to a `RgbColor` object (`{ r: number, g: number, b: number }`)
173173+ * Converts a `HslColor` object (`{ h: number, s: number, l: number, a: number }`) to a `RgbColor` object (`{ r: number, g: number, b: number, a: number }`)
174174 * @param {HslColor} - A HSL colour object.
175175 * @returns {RgbColor} An RGB colour object.
176176 */