import * as colormath from "https://deno.land/x/colormath@1.2.4/mod.ts";
Classes
A color result object returned by functions in "methods.ts". |
Functions
Breaks down a raw hex into [r, g, b]. | |
Returns the complementary color of the provided color. | |
Darkens a color. | |
Desaturates a color. | |
Formats the unformatted hex. | |
Converts grayscale percentage to hex string. | |
Converts grayscale percentage to rgb values in the form of [r, g, b] array. | |
Converts a color into grayscale. | |
f hue | Rotates the hue variable by provided degree. |
Returns the inverted color of the provided color value. | |
Lightens a color. | |
Mixes two colors. | |
Converts a rgb value to the component of hex. | |
Returns a random rgb color in the form of [r, g, b] array. | |
Returns a random color in the form of formatted hex. | |
Extracts the raw hex from the hex string. | |
Saturates a color. |
Type Aliases
A union type of [r, g, b] values or hexadecimal string. |