Class Info |
|---|
public class Color implements Parcelable 颜色信息。 |
Qualifier and Type | Method Name and Description |
|---|---|
void | setColor(int r, int g, int b, int a) 设置颜色的r、g、b、a值。 |
Constructor |
|---|
public Color(int r, int g, int b, int a) 使用r、g、b、a初始化Color。 |
Parameters
Name | Description |
|---|---|
r | 红色,取值0-255。 |
g | 绿色,取值0-255。 |
b | 蓝色,取值0-255。 |
a | 透明度,取值0-255。 |