Class ColorTypes.ABGR32
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType
dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType.BlendingIntColorType
dev.lukebemish.dynamicassetgenerator.api.colors.ColorTypes.ABGR32
- Enclosing class:
ColorTypes
Colors encoded with the least significant 32 bits representing 4 8-bit channels: alpha, blue, green, and red.
NativeImages are encoded this way.-
Nested Class Summary
Nested classes/interfaces inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType
IntColorType.BlendingIntColorType, IntColorType.HueIntColorType -
Method Summary
Modifier and TypeMethodDescriptionintblue(int color) intfromARGB32(int color) intgreen(int color) intred(int color) inttoARGB32(int color) Methods inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType.BlendingIntColorType
alphaBlend
-
Method Details
-
red
@Contract(pure=true) public int red(int color) -
green
@Contract(pure=true) public int green(int color) -
blue
@Contract(pure=true) public int blue(int color) -
toARGB32
public int toARGB32(int color) - Specified by:
toARGB32in classIntColorType- Returns:
- the color, encoded as
ColorTypes.ARGB32
-
fromARGB32
public int fromARGB32(int color) - Specified by:
fromARGB32in classIntColorType- Returns:
- the provided
ColorTypes.ARGB32color, encoded as this color type
-