Tag Archives: rainbow colors

Animate rainbow colors in C#

The example Map numeric values to and from colors in a color gradient in C# draws a color gradient that uses rainbow colors. This example animates that one. When you click on the color gradient, the following code starts or … Continue reading

Posted in algorithms, animation, graphics, mathematics | Tagged , , , , , , , , , , , , , , , | Leave a comment

Map numeric values to colors in a rainbow in C#

Sometimes it’s useful to map numeric values to colors. For example, intensity of color could indicate population density, agricultural yield, rainfall, or other values on a map. The following MapRainbowColor method maps a value between two bounds to a rainbow … Continue reading

Posted in graphics, mathematics | Tagged , , , , , , , , , , | 3 Comments