Skip to content

RgbColor

#include "crosspad/led/RgbColor.hpp"

Generated from crosspad/led/RgbColor.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.

Recipes that use it: Pads and LEDs

Used in Pads and LEDs.

FieldTypeDescription
Ruint8_t
Guint8_t
Buint8_t

Members

MemberDescription
RgbColor
RgbColor
operator==
RgbColor
Dim
LinearBlend

Methods

RgbColor()
RgbColor(uint8_t R, uint8_t G, uint8_t B)
bool operator==(const RgbColor &other) const
RgbColor(HslColor hsl)
RgbColor Dim(uint8_t brightness) const
static RgbColor LinearBlend(const RgbColor &start, const RgbColor &end, float t)

Declared in crosspad/led/RgbColor.hpp:8.