View Source Fledex.Functions (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

create_gradient_rgb(num_leds, start_color, end_color)

View Source
@spec create_gradient_rgb(pos_integer(), rgb(), rgb()) :: [rgb()]
Link to this function

create_rainbow_circular_hsv(num_leds, initialHue \\ 0, reversed \\ false)

View Source
@spec create_rainbow_circular_hsv(pos_integer(), byte(), boolean()) :: [hsv()]
Link to this function

create_rainbow_circular_rgb(num_leds, initialHue \\ 0, reversed \\ false)

View Source
@spec create_rainbow_circular_rgb(pos_integer(), byte(), boolean()) :: [rgb()]
Link to this function

hsv2rgb(leds, conversion_function \\ &Conversion.Rainbow.hsv2rgb/2, color_correction \\ &Correction.color_correction_none/1)

View Source
@spec hsv2rgb([hsv()], (hsv(), (rgb() -> rgb()) -> rgb()), (rgb() -> rgb())) :: [
  rgb()
]