diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-03 11:43:42 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-03 11:43:42 -0400 |
commit | 21582828b7574592a17727a68f163d2d6ef4eb9b (patch) | |
tree | 77e59d79494d339ca6518f33e5bf5648ac6b676b /libs/canvas/canvas | |
parent | a1df752095f9aec96711b8f9693172fd32cc60ba (diff) |
add a guess at appropriate color management for note velocity display
I think that HSV::opposite() is probably too strong here. HSV::darker() might be better. Experimentation needed.
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/note.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/canvas/canvas/note.h b/libs/canvas/canvas/note.h index 2dd3ac6a7b..1b20830042 100644 --- a/libs/canvas/canvas/note.h +++ b/libs/canvas/canvas/note.h @@ -33,10 +33,12 @@ public: void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const; void set_velocity (double fract); + void set_fill_color (Gtkmm2ext::Color); private: - static bool _show_velocity_bars; - double _velocity; + static bool _show_velocity_bars; + double _velocity; + Gtkmm2ext::Color _velocity_color; }; } |