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

public abstract static class LongColorType.BlendingLongColorType extends LongColorType
A color type whose channels can be linearly blended by alpha blending.
  • 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 other
      under - the color to layer under the other
      Returns:
      a composite color calculated by alpha blending