for an order overview I have a list of multiple orders with different priorities. They reach from -10 => very high priority to +20 => low priority. Based on this priority I want to return a Gradient brush Color dynamically.
For example:
- From -10 to -0.5 it should it fade from darkred into orange
- From -0.5 to +0.5 it should fade from orange into yellow into lime
- From +0.5 to +10 it should fade from lime to green
I have never made this before and absolutly no clue how to solve this. Even if you don't have a complete solution for me it would be very nice to give me a hint.
Regards Johannes
I guess you are revering to this color: http://msdn.microsoft.com/en-us/library/system.drawing.color.aspx
Lookup this link: Is there an easy way to blend two System.Drawing.Color values?
It tells you how to blend between two colors
After this you can retrieve a brush: convert from Color to brush