View Source Fledex.Color.Correction (fledex v0.1.1)

Summary

Types

@type colorint() :: 0..16_777_215
@type hsv() :: {hue :: 0..255, saturation :: 0..255, value :: 0..255}
@type rgb() :: {red :: 0..255, green :: 0..255, blue :: 0..255}

Functions

Link to this function

apply_rgb_correction(leds, correction)

View Source
@spec apply_rgb_correction([rgb()], byte() | rgb()) :: [rgb()]
Link to this function

calculate_color_correction(scale, cc, ct)

View Source
@spec calculate_color_correction(byte(), byte(), byte()) :: byte()
Link to this function

color_correction_g2(arg)

View Source
@spec color_correction_g2(rgb()) :: rgb()
Link to this function

color_correction_none(arg)

View Source
@spec color_correction_none(rgb()) :: rgb()
Link to this function

define_correction(scale \\ 255, color_correction, temperature_correction)

View Source
@spec define_correction(byte(), colorint(), colorint()) :: rgb()
@spec no_color_correction() :: rgb()