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.

22 lines
519B

  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. void addBaseColor(NVGcolor baseColor);
  11. /** Sets the color to a linear combination of the baseColors with the given weights */
  12. void setBrightnesses(const std::vector<float> &brightnesses);
  13. };
  14. } // namespace app
  15. } // namespace rack