java.lang.Object
dev.lukebemish.dynamicassetgenerator.api.client.generators.texsources.ShadowedSource.Builder
Enclosing class:
ShadowedSource

public static class ShadowedSource.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setBackground

      public ShadowedSource.Builder setBackground(TexSource background)
      Sets the background image to be overlayed onto.
    • setForeground

      public ShadowedSource.Builder setForeground(TexSource foreground)
      Sets the image to overlay onto the background image.
    • setExtendPaletteSize

      public ShadowedSource.Builder 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. Defaults to 6.
    • setHighlightStrength

      public ShadowedSource.Builder setHighlightStrength(int highlightStrength)
      Sets how strong the generated highlight should be, on a relative scale. Defaults to 72.
    • setShadowStrength

      public ShadowedSource.Builder setShadowStrength(int shadowStrength)
      Sets how strong the generated shadow should be, on a relative scale. Defaults to 72.
    • setUniformity

      public ShadowedSource.Builder setUniformity(float uniformity)
      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

      public ShadowedSource build()