📜  创建颜色对象 java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.645000             🧑  作者: Mango

代码示例1
//Color using RGB
Color col = Color(r, g, b);
//Color using RGBA
Color col = Color(r, g, b, a);

//r, g, b and a can be a float between 0.0 and 1 or 
//an int between 0 and 255
//The format must be consistant across all values