Class LongColorType.BlendingLongColorType
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType
dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType.BlendingLongColorType
- Direct Known Subclasses:
ColorTypes.ABGR64,ColorTypes.ARGB64
- Enclosing class:
LongColorType
A color type whose channels can be linearly blended by alpha blending.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType
LongColorType.BlendingLongColorType, LongColorType.HueLongColorType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongalphaBlend(long over, long under) Calculates a composite color from two colors to layerMethods inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.LongColorType
alpha, color, first, fromARGB64, second, third, toARGB64
-
Constructor Details
-
BlendingLongColorType
public BlendingLongColorType()
-
-
Method Details
-
alphaBlend
@Contract(pure=true) public long alphaBlend(long over, long under) Calculates a composite color from two colors to layer- Parameters:
over- the color to layer over the otherunder- the color to layer under the other- Returns:
- a composite color calculated by alpha blending
-