Struct PaletteController::PaletteWrapper

Nested Relationships

This struct is a nested type of Class PaletteController.

Struct Documentation

struct PaletteWrapper

Wrapper class for PixelMaestro Palettes.

Public Functions

bool operator==(Colors::RGB *section_colors)
PaletteWrapper(QString new_name, Colors::RGB new_colors[], uint8_t num_colors, PaletteType type, const Colors::RGB &base_color, const Colors::RGB &target_color, bool mirror, uint8_t start, uint8_t length)

Constructor. Provides storage for colors (which is why we pass colors directly instead of a Palette object.)

Parameters
  • new_name: Palette name.

  • new_colors: Palette colors.

  • num_colors: Number of colors in the Palette.

  • type: The type of Palette.

  • base_color: The Palette’s initial color.

  • target_color: The Palette’s target color.

  • mirror: For scaling Palettes, whether to mirror the colors.

  • start: For comets, where the body of the comet starts.

  • length: For comets, where the tail of the comet ends.

Public Members

Colors::RGB base_color
Colors::RGB target_color
bool mirror
QString name = ""
uint8_t start = 0
uint8_t length = 0
PaletteType type = PaletteType::Blank
Palette palette