export declare namespace ColorTools { /**packs color in binary form 32bit */ function PackColor(r: number, g: number, b: number, a: number): number; /**packs color in binary form 32bit */ function PackColor3(color: Color3): number; /**unpacks color from binary*/ function UnpackColor3(packed_color: number): Color3; /**unpacks color from binary*/ function UnpackColor(packed_color: number): LuaTuple<[number, number, number, number]>; function GetRelativeLuminance(color: Color3): number; function CalculateContrastRatio(color_1: Color3, color_2: Color3): number; /** * @returns if the colors luminance if greater than .6 */ function IsBright(color: Color3): boolean; /** * @returns black or white */ function GetSimpleContrastColor(color: Color3): Color3; /** * @returns contrast rgb color */ function GetContrastColor(color: Color3): Color3; /** * @link https://www.rapidtables.com/convert/color/rgb-to-hsv.html * * */ function RGBToHSV(r: number, g: number, b: number): LuaTuple<[number, number, number]>; /** * @link https://www.rapidtables.com/convert/color/hsv-to-rgb.html * * */ function HSVToRGB(h: number, s: number, v: number): LuaTuple<[number, number, number]>; /** * @see https://github.com/littensy/rbxts-react-example/blob/main/src/client/utils/color-utils.ts * @param color The color to brighten or darken * @param brightness The amount to brighten or darken the color * @param vibrancy How much saturation changes with brightness */ function Brighten(color: Color3, brightness: number, vibrancy?: number): Color3; /** * @see https://github.com/littensy/rbxts-react-example/blob/main/src/client/utils/color-utils.ts * @param color The color to saturate or desaturate * @param saturation How much to add or remove from the color's saturation */ function Saturate(color: Color3, saturation: number): Color3; }