VCV Rack API v2
Loading...
Searching...
No Matches
MultiLightWidget.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
3#include <app/LightWidget.hpp>
4
5
6namespace rack {
7namespace app {
8
9
13 std::vector<NVGcolor> baseColors;
14
16 void addBaseColor(NVGcolor baseColor);
18 void setBrightnesses(const std::vector<float>& brightnesses);
19};
20
21
22} // namespace app
23} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition LightWidget.hpp:10
Mixes a list of colors based on a list of brightness values.
Definition MultiLightWidget.hpp:11
std::vector< NVGcolor > baseColors
Colors of each value state.
Definition MultiLightWidget.hpp:13
void addBaseColor(NVGcolor baseColor)
void setBrightnesses(const std::vector< float > &brightnesses)
Sets the color to a linear combination of the baseColors with the given weights.