Class ImageFunctions.AdditiveComposite
java.lang.Object
com.blackrook.rookscript.desktop.functions.ImageFunctions.AdditiveComposite
- All Implemented Interfaces:
Composite
- Enclosing class:
- ImageFunctions
public static final class ImageFunctions.AdditiveComposite extends Object implements Composite
A composite that adds pixel color together.
The scalar amount for the addition per pixel is taken from the alpha component.
-
Method Summary
Modifier and Type Method Description CompositeContext
createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
static ImageFunctions.AdditiveComposite
getInstance()
static ImageFunctions.AdditiveComposite
getInstance(float scalar)
-
Method Details
-
getInstance
- Returns:
- an instance of this composite.
-
getInstance
- Parameters:
scalar
- the applicative scalar.- Returns:
- an instance of this composite.
-
createContext
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)- Specified by:
createContext
in interfaceComposite
-