Color
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import contenttweaker.util.Color;
Static Methods
Return Type: Color
Color.packedRgb(color as int) as Color
Parameter | Type |
---|---|
Parameter color | Type int |
Return Type: Color
Color.packedRgba(color as int) as Color
Parameter | Type |
---|---|
Parameter color | Type int |
Return Type: Color
Color.rgb(r as int, g as int, b as int) as Color
Parameter | Type |
---|---|
Parameter r | Type int |
Parameter g | Type int |
Parameter b | Type int |
Return Type: Color
Color.rgba(r as int, g as int, b as int, a as int) as Color
Parameter | Type |
---|---|
Parameter r | Type int |
Parameter g | Type int |
Parameter b | Type int |
Parameter a | Type int |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name a | Type int | Has Getter true | Has Setter false |
Name b | Type int | Has Getter true | Has Setter false |
Name g | Type int | Has Getter true | Has Setter false |
Name r | Type int | Has Getter true | Has Setter false |