Module technology.sola.engine
Class MultiplyBlendFunction
java.lang.Object
technology.sola.engine.graphics.renderer.blend.MultiplyBlendFunction
- All Implemented Interfaces:
BlendFunction
Takes the RGB channel values from 0 to 1 of each pixel in the top layer and multiples them with the values for the
corresponding pixel from the bottom layer.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MultiplyBlendFunction
public MultiplyBlendFunction()
-
-
Method Details
-
set
Description copied from interface:BlendFunction
Method called to set the color of the pixel at pixelIndex.- Specified by:
set
in interfaceBlendFunction
- Parameters:
pixels
- the array of pixelspixelIndex
- the index of the destination pixel to modifycolor
- theColor
of the top pixel being applied
-