Class ColorTypes.ABGR64
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType
dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType.BlendingLongColorType
dev.lukebemish.dynamicassetgenerator.api.colors.ColorTypes.ABGR64
- Enclosing class:
ColorTypes
Colors encoded with the least significant 64 bits representing 4 16-bit channels: alpha, blue, green, and red.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType
LongColorType.BlendingLongColorType, LongColorType.HueLongColorType -
Method Summary
Modifier and TypeMethodDescriptionintblue(long color) longfromARGB64(long color) intgreen(long color) intred(long color) longtoARGB64(long color) Methods inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType.BlendingLongColorType
alphaBlend
-
Method Details
-
red
@Contract(pure=true) public int red(long color) -
green
@Contract(pure=true) public int green(long color) -
blue
@Contract(pure=true) public int blue(long color) -
toARGB64
public long toARGB64(long color) - Specified by:
toARGB64in classLongColorType- Returns:
- the color, encoded as
ColorTypes.ARGB64
-
fromARGB64
public long fromARGB64(long color) - Specified by:
fromARGB64in classLongColorType- Returns:
- the provided
ColorTypes.ARGB64color, encoded as this color type
-