Sign In

ForgeColor Functions

Browse 28 native functions in ForgeColor. Filter by category, version, and name.

$blendColors

Blends two colors using a blend mode like average, multiply, or gamma.

generationv1.0.0→ String
$colorFormatType

Returns the format of a given color code (hex, rgb, rgba, hsl, etc).

utilityv1.0.0→ String
$colorToCMYK

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a cmyk format.

conversionv1.0.1→ String
$colorToHex

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a hex format.

conversionv1.0.1→ String
$colorToHSL

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a hsl format.

conversionv1.0.1→ String
$colorToInt

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a int format.

conversionv1.0.1→ String
$colorToRGB

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a rgb/rgba format.

conversionv1.0.1→ String
$convertColor

Converts a color code from any supported format (hex, rgb, hsl, etc.) to a target format.

conversionv1.0.0→ String
$generateGradient

Generates a gradient of color codes between two or more colors.

generationv1.0.1→ Json
$getColorChannel

Extracts a specific channel (e.g. red, hue, saturation) from a color code.

utilityv1.0.0→ Number
$invertColor

Inverts a color's RGB channels and returns an new inverted color.

manipulationv1.0.0→ String
$isDarkColor

Checks if a color is dark based on luminance (returns true/false).

utilityv1.0.1→ Boolean
$isLightColor

Checks if a color is light based on luminance (returns true/false).

utilityv1.0.1→ Boolean
$isValidColor

Checks whether given color code is valid.

utilityv1.0.1→ Boolean
$parseColor

Parses and normalizes a color string to a structured object.

conversionv1.0.0→ Json
$prettifyColor

Returns a cleaner, standardized version of the given color string.

utilityv1.0.0→ String
$randomColor

Generates a random color in the specified format (hex by default).

generationv1.0.0→ String