Class LightenBlendFunction

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

@NullMarked public class LightenBlendFunction extends Object implements BlendFunction
Takes the max value of each channel for the destination pixel; alpha, red, green, blue.
  • Constructor Details

    • LightenBlendFunction

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