Creates a new color.
This is a static method. |
This is a static method. |
| Type | Description |
| Color | Returns the newly created color or null if the creation failed. |
| Name | Type | Description |
| red | short | The red component of the color. The value can be 0 to 255. |
| green | short | The green component of the color. The value can be 0 to 255. |
| blue | short | The blue component of the color. The value can be 0 to 255. |
| opacity | short | The opacity of the color. The value can be 0 to 255. |