steinbergmedia / vstgui

A user interface toolkit mainly for audio plug-ins
Other
850 stars 121 forks source link

Implementation of the radial gradient with cairo for Linux. #306

Closed rehans closed 9 months ago

rehans commented 10 months ago

I followed this tutorial about gradients with cairo: https://zetcode.com/gfx/cairo/gradients/

I compared to Windows and with the same settings in the VSTGUI Live Editor I got identical looking results. Sometimes there is a "hickup": When moving around the view the radial gradient gets sticky and does not follow the view any longer. But when saving it "jumps" back into place.

Furthermore there is the originOffset argument of fillRadialGradient. But I don't know what it is for. It is always (0,0) and I cannot make it change by any setting in VSTGUI Live Editor.