- 博客(0)
- 资源 (1)
- 收藏
- 关注
jsp把文字改为图片
Color getRandColor(int fc,int bc){//给定范围获得随机颜色
Random random = new Random();
if(fc>255) fc=255;
if(bc>255) bc=255;
int r=fc+random.nextInt(bc-fc);
int g=fc+random.nextInt(bc-fc);
int b=fc+random.nextInt(bc-fc);
return new Color(r,g,b);
}
2008-12-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人