19 #ifndef _ardour_surfaces_m2button_h_
20 #define _ardour_surfaces_m2button_h_
52 virtual uint8_t
lightness (
float)
const {
return 0; }
53 virtual uint32_t
color (
float)
const {
return 0; }
76 const uint8_t r = ((rgba >> 24) & 0xff) >> 1;
77 const uint8_t g = ((rgba >> 16) & 0xff) >> 1;
78 const uint8_t b = ((rgba >> 8) & 0xff) >> 1;
111 if (
_blink && blink >= 0.f && blink <= 1.f) {
117 uint32_t
color (
float blink)
const {
118 if (
_blink && blink >= 0.f && blink <= 1.f) {
167 if (down) {
return; }
HSV shade(double factor) const