开发者

How do i programmatically select range of colors

If its possible, i want to select blue colors only and put em into 开发者_如何学运维array or something. I am thinking colors from light blue to deep blue.


A very simplistic approach:

Enumerable.Range(1, 255).Select(x => Color.FromArgb(255, 0, 0, x))

You could only take every 10th step and also mix in red and green shades.


I am assuming you want something like this:

http://www.workwithcolor.com/blue-color-hue-range-01.htm

This gets you quite a few colors but you might want to look at just creating a color picker or something if you want even more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜