From 58cdb6e76b602189b555263c18b86acffeced68c Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Sat, 14 Nov 2015 16:07:07 +0100 Subject: [PATCH] Added some content --- Rainbow-Gradient.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Rainbow-Gradient.md b/Rainbow-Gradient.md index 30404ce..e1b3740 100644 --- a/Rainbow-Gradient.md +++ b/Rainbow-Gradient.md @@ -1 +1,14 @@ -TODO \ No newline at end of file +The _RainbowGradient_ is one of the default gradients provided by CUE.NET. +It's based on the color gamut of the [HSV-color space](https://en.wikipedia.org/wiki/HSL_and_HSV). + +The _RainbowGradient_ has only two properties. The [hue](https://en.wikipedia.org/wiki/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 on and a half time through all colors (starting with red and ending with cyan), you can take the following code: + +```C# +RainbowGradient rainbowGradient = new RainbowGradient(0, 540); +``` \ No newline at end of file