Class ShadowedSource.Builder
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.client.generators.texsources.ShadowedSource.Builder
- Enclosing class:
ShadowedSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setBackground(TexSource background) Sets the background image to be overlayed onto.setExtendPaletteSize(int extendPaletteSize) Sets a minimum size that the palette of the background image will be extended to if it is not already this size.setForeground(TexSource foreground) Sets the image to overlay onto the background image.setHighlightStrength(int highlightStrength) Sets how strong the generated highlight should be, on a relative scale.setShadowStrength(int shadowStrength) Sets how strong the generated shadow should be, on a relative scale.setUniformity(float uniformity) Sets how uniform the generated highlight and shadow should be.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setBackground
Sets the background image to be overlayed onto. -
setForeground
Sets the image to overlay onto the background image. -
setExtendPaletteSize
Sets a minimum size that the palette of the background image will be extended to if it is not already this size. Defaults to 6. -
setHighlightStrength
Sets how strong the generated highlight should be, on a relative scale. Defaults to 72. -
setShadowStrength
Sets how strong the generated shadow should be, on a relative scale. Defaults to 72. -
setUniformity
Sets how uniform the generated highlight and shadow should be. 0 is as uniform as the original image, and the uniformity increases as this value increases, becoming completely uniform as this value becomes extremely large. Defaults to 1.0. -
build
-