Class IntColorType.BlendingIntColorType
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType
dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType.BlendingIntColorType
- Direct Known Subclasses:
ColorTypes.ABGR32,ColorTypes.ARGB32
- Enclosing class:
IntColorType
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.IntColorType
IntColorType.BlendingIntColorType, IntColorType.HueIntColorType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintalphaBlend(int over, int under) Calculates a composite color from two colors to layerMethods inherited from class dev.lukebemish.dynamicassetgenerator.api.colors.IntColorType
alpha, color, first, fromARGB32, second, third, toARGB32
-
Constructor Details
-
BlendingIntColorType
public BlendingIntColorType()
-
-
Method Details
-
alphaBlend
@Contract(pure=true) public int alphaBlend(int over, int 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
-