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.

20 lines
472B

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