color_util library

Color utility functions

Functions

colorLerp(TrueColor color1, TrueColor color2) LerpFunction
Returns a function that interpolates between two colors.
colorLuminance(TrueColor color) double
Function that calculates the TrueColor luminance and returns a value between 0.0 and 1.0. Being 0.0 black and 1.0 white.
rgbToHsv(TrueColor color) HSV
Convert a TrueColor color to HSV

Typedefs

HSV = ({double h, double s, double v})
HSV color definition
LerpFunction = TrueColor Function(double t)
Type of the function returned by colorLerp function. the parameter t is a value between 0.0 and 1.0.