1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-12 08:48:30 +00:00
4
Rainbow Gradient
DarthAffe edited this page 2017-01-08 11:12:48 +01:00

The RainbowGradient is one of the default gradients provided by CUE.NET.
It's based on the color gamut of the HSV-color space.

The RainbowGradient has only two properties. The hue of the start and end end point.
Both are given in degree-values for which you can take this image as reference:

The rainbow gradient can cover more than 360 degree. To get more than one cycle of rainbow-colors just use a bigger value.

If you want to create a gradient representing an rainbow cycling one and a half time through all colors (starting with red and ending with cyan), you can take the following code:

RainbowGradient rainbowGradient = new RainbowGradient(0, 540);