Class NormalBlendFunction

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

@NullMarked public class NormalBlendFunction extends Object implements BlendFunction
Blends top onto bottom based on alpha of top pixel.
  • Constructor Details

    • NormalBlendFunction

      public NormalBlendFunction()
  • 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