public class ColorUtils
extends java.lang.Object
Color
sConstructor and Description |
---|
ColorUtils() |
Modifier and Type | Method and Description |
---|---|
static com.badlogic.gdx.graphics.Color |
rgbaToColor(java.lang.String value)
Converts a RGBA value to an instance of
Color |
static com.badlogic.gdx.graphics.Color |
rgbToColor(java.lang.String value)
Converts a RGB value to an instance of
Color |
public static com.badlogic.gdx.graphics.Color rgbToColor(java.lang.String value)
Color
value
- A comma-separated RGB value - e.g. 255,255,255Color
instance corresponding to the valuepublic static com.badlogic.gdx.graphics.Color rgbaToColor(java.lang.String value)
Color
value
- A comma-separated RGBA value - e.g. 255,255,255,0.3Color
instance corresponding to the value