Class Pixel

Class Documentation

class Pixel

Public Functions

Pixel()
void clear()

Clears the Pixel’s color values.

Colors::RGB &get_color()

Returns the current color.

Return

The current color.

void set_next_color(const Colors::RGB &next_color, uint8_t step_count)

Sets the Pixel’s target color.

Parameters
  • next_color: Target color.

  • step_count: The number of steps to the target color.

void update(bool apply_next_color = false)

Main update routine. Checks for and applies color changes.