RGB(int r, int g, int b) |
int |
返回 RGBA(r, g, b, 255) |
RGBA(int r, int g, int b, int a) |
int |
(a << 24) | ((r & 255) << 16) | ((g & 255) << 8) | (b & 255) |
RGB(float red, float green, float blue) |
int |
RGBA((int)red*255, ..., 255) |
RGB(float red, float green, float blue, float alpha) |
int |
RGBA((int)red*255, ..., (int)alpha*255) |
RGB(String colour) |
int |
#RRGGBB 字符串解析。非法则记日志并返回黑色 |
blend(int... colours) |
int |
多个 int 颜色平均混合 |
tone(int colour, float scale) |
int |
scale > 1 加亮,< 1 变暗(按 RGB 缩放,A 保持) |
blendWithGreyScale(int colour, float greyScale) |
int |
blend(colour, RGB(greyScale, greyScale, greyScale)) |
getRainbowColour(float freqR, float freqG, float freqB, float phaseR, float phaseG, float phaseB, float center, float width, float length) |
int |
基于 System.currentTimeMillis() 的彩虹色 |
getRainbowColour(float[] params) |
int |
上面方法的数组重载,参数顺序同上 |
getRainbowSettings(String colourCode) |
float[] |
解析 rainbow<freqR>,<freqG>,<freqB>,<phaseR>,<phaseG>,<phaseB>,<center>,<width>,<length> 字符串为 9 个 float |