Class PaletteCombinedSource.Builder
java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.client.generators.texsources.PaletteCombinedSource.Builder
- Enclosing class:
PaletteCombinedSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setBackground(TexSource background) Sets the image that will provide a source of colors for the palette transfer.setExtendPaletteSize(int extendPaletteSize) Sets the minimum size of the palette.setIncludeBackground(boolean includeBackground) Sets whether the image specified bysetBackground(dev.lukebemish.dynamicassetgenerator.api.client.generators.TexSource)should be included as the background of the final image.setOverlay(TexSource overlay) Sets the image that will be overlayed on top of the final image.setPaletted(TexSource paletted) Sets an image that will be treated as sample numbers of the palette.setStretchPaletted(boolean stretchPaletted) Sets whether the image specified bysetPaletted(dev.lukebemish.dynamicassetgenerator.api.client.generators.TexSource)should be stretched to the full range of the palette.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setOverlay
Sets the image that will be overlayed on top of the final image. -
setBackground
Sets the image that will provide a source of colors for the palette transfer. -
setPaletted
Sets an image that will be treated as sample numbers of the palette. The colors of this image will be treated as samples into the palette, and will be converted into the colors of the palette in the final image. -
setIncludeBackground
Sets whether the image specified bysetBackground(dev.lukebemish.dynamicassetgenerator.api.client.generators.TexSource)should be included as the background of the final image. Defaults to true. -
setStretchPaletted
Sets whether the image specified bysetPaletted(dev.lukebemish.dynamicassetgenerator.api.client.generators.TexSource)should be stretched to the full range of the palette. Defaults to false. -
setExtendPaletteSize
Sets the minimum size of the palette. If the palette is smaller than this size, it will be extended to this. Defaults to 8. -
build
-