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.

49 lines
999B

  1. #include "rack.hpp"
  2. using namespace rack;
  3. #define plugin "computerscare"
  4. #ifndef COLOR_MAGENTA
  5. #define COLOR_MAGENTA nvgRGB(240, 50, 230)
  6. #endif
  7. #ifndef COLOR_LIME
  8. #define COLOR_LIME nvgRGB(210, 245, 60)
  9. #endif
  10. #ifndef COLOR_PINK
  11. #define COLOR_PINK nvgRGB(250, 190, 190)
  12. #endif
  13. namespace rack_plugin_computerscare {
  14. struct OutPort : SVGPort {
  15. OutPort() {
  16. background->svg = SVG::load(assetPlugin(plugin, "res/09 Output Plug.svg"));
  17. background->wrap();
  18. box.size = background->box.size;
  19. }
  20. };
  21. struct InPort : SVGPort {
  22. InPort() {
  23. background->svg = SVG::load(assetPlugin(plugin, "res/computerscare-pentagon-jack-1-outline.svg"));
  24. background->wrap();
  25. box.size = background->box.size;
  26. }
  27. };
  28. // Knobs
  29. struct LrgKnob : RoundBlackSnapKnob {
  30. LrgKnob() {
  31. setSVG(SVG::load(assetPlugin(plugin, "res/computerscare-big-knob-effed.svg")));
  32. //void randomize() override;
  33. box.size = Vec(32,32);
  34. }
  35. void randomize() override { return; }
  36. };
  37. } // namespace rack_plugin_computerscare