You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
541B

  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <app/LightWidget.hpp>
  4. namespace rack {
  5. namespace app {
  6. /** Mixes a list of colors based on a list of brightness values */
  7. struct MultiLightWidget : LightWidget {
  8. /** Colors of each value state */
  9. std::vector<NVGcolor> baseColors;
  10. int getNumColors();
  11. void addBaseColor(NVGcolor baseColor);
  12. /** Sets the color to a linear combination of the baseColors with the given weights */
  13. void setBrightnesses(const std::vector<float>& brightnesses);
  14. };
  15. } // namespace app
  16. } // namespace rack