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
6
namespace
rack
{
7
namespace
app {
8
9
11
struct
MultiLightWidget
:
LightWidget
{
13
std::vector<NVGcolor>
baseColors
;
14
15
int
getNumColors
();
16
void
addBaseColor
(NVGcolor baseColor);
18
void
setBrightnesses
(
const
std::vector<float>& brightnesses);
19
};
20
21
22
}
// namespace app
23
}
// namespace rack
LightWidget.hpp
common.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::app::LightWidget
Definition
LightWidget.hpp:10
rack::app::MultiLightWidget
Mixes a list of colors based on a list of brightness values.
Definition
MultiLightWidget.hpp:11
rack::app::MultiLightWidget::baseColors
std::vector< NVGcolor > baseColors
Colors of each value state.
Definition
MultiLightWidget.hpp:13
rack::app::MultiLightWidget::getNumColors
int getNumColors()
rack::app::MultiLightWidget::addBaseColor
void addBaseColor(NVGcolor baseColor)
rack::app::MultiLightWidget::setBrightnesses
void setBrightnesses(const std::vector< float > &brightnesses)
Sets the color to a linear combination of the baseColors with the given weights.
include
app
MultiLightWidget.hpp
Generated by
1.12.0