#pragma once #include #include namespace rack { namespace app { /** Mixes a list of colors based on a list of brightness values */ struct MultiLightWidget : LightWidget { /** Colors of each value state */ std::vector baseColors; int getNumColors(); void addBaseColor(NVGcolor baseColor); /** Sets the color to a linear combination of the baseColors with the given weights */ void setBrightnesses(const std::vector& brightnesses); }; } // namespace app } // namespace rack