我这样生成一个随机颜色:
var random = new Random(); var color = String.Format("#{0:X6}", random.Next(0x1000000));
如何排除比某个值更亮的颜色?
c# colors
c# ×1
colors ×1