Struct Section::Layer

Nested Relationships

This struct is a nested type of Class Section.

Struct Documentation

struct Layer

Layers a second Section on top of the current one. When getting color output, use get_pixel_color(). This returns RGB values after blending the two Sections together.

Public Functions

Layer(Section &parent, Colors::MixMode mix_mode, uint8_t alpha = 0)

Constructor.

Parameters
  • section: Section to use as the Layer.

  • mix_mode: Color mixing method to use.

  • alpha: For The amount of transparency that the Layer will have (0 - 255).

~Layer()

Public Members

Section *section = nullptr

The Section to use as the layer.

Colors::MixMode mix_mode = Colors::MixMode::None

Method of blending the output from the Layer with the base Section.

uint8_t alpha

Transparency level of the overlaid Section.