Class DissolveBlendFunction

java.lang.Object
technology.sola.engine.graphics.renderer.blend.DissolveBlendFunction
All Implemented Interfaces:
BlendFunction

@NullMarked public class DissolveBlendFunction extends Object implements BlendFunction
Random chance of using color of top pixel based on alpha as the probability. An alpha of 127 would be a 50% chance of using the top pixel.
  • Constructor Details

    • DissolveBlendFunction

      public DissolveBlendFunction()
  • Method Details

    • set

      public void set(int[] pixels, int pixelIndex, Color color)
      Description copied from interface: BlendFunction
      Method called to set the color of the pixel at pixelIndex.
      Specified by:
      set in interface BlendFunction
      Parameters:
      pixels - the array of pixels
      pixelIndex - the index of the destination pixel to modify
      color - the Color of the top pixel being applied