mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
backport canvas color functions from Mixbus
This commit is contained in:
parent
8fc5b5c060
commit
742e113a7b
2 changed files with 8 additions and 0 deletions
|
|
@ -658,3 +658,10 @@ SVAModifier::operator () (HSV& hsv) const
|
|||
return r;
|
||||
}
|
||||
|
||||
ArdourCanvas::Color
|
||||
ArdourCanvas::color_at_alpha (ArdourCanvas::Color c, double a)
|
||||
{
|
||||
double r, g, b, unused;
|
||||
color_to_rgba (c, r, g, b, unused);
|
||||
return rgba_to_color( r,g,b, a );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue