-
There's no I want to create a gradient between two HSL colours, and I'm completely stuck at doing it. There seems to be no existing way to create a colour from HSL, and There's no |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
And immediately as I wrote it, the issue is solved... var color = new Hsl(hue, saturation, lightness);
var converter = new ColorSpaceConverter();
var c = converter.ToRgb(color);
var stop = new ColorStop(0f, new Color((Rgba32)c)); never thought I'd need so much code to do it, but at least it works. |
Beta Was this translation helpful? Give feedback.
And immediately as I wrote it, the issue is solved...
never thought I'd need so much code to do it, but at least it works.