【发布时间】:2014-12-01 13:28:10
【问题描述】:
我正在使用 AChart 引擎。
并在运行时动态设置颜色。
这是我的代码,
private int getRandomColor() {
Random rnd = new Random();
int color = Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));
return color;
}
我的问题是我也(随机)获得了亮度颜色。
那么如何只避免亮度颜色呢?
我的输出:
【问题讨论】: