开发者

How do i programmatically select range of colors

开发者 https://www.devze.com 2023-03-12 17:12 出处:网络
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:

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

精彩评论

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