mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
massive reworking of color selection implementation
This commit is contained in:
parent
e9768e934f
commit
318a9edab9
24 changed files with 2602 additions and 1020 deletions
|
|
@ -683,7 +683,7 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak
|
|||
color_to_hsv (_fill_color, h, s, v);
|
||||
/* change v towards white */
|
||||
v *= 1.0 - gradient_depth();
|
||||
Color center = hsv_to_color (h, s, v, a);
|
||||
Color center = hsva_to_color (h, s, v, a);
|
||||
color_to_rgba (center, r, g, b, a);
|
||||
|
||||
gradient->add_color_stop_rgba (stops[0], r, g, b, a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue