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

public static class PaletteSpreadSource.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setSource

      public PaletteSpreadSource.Builder setSource(TexSource source)
      Sets the input texture to map the colors of.
    • setPaletteCutoff

      public PaletteSpreadSource.Builder setPaletteCutoff(double paletteCutoff)
      Sets the cutoff for the palette. Colors within this Euclidean distance to each other, in integer RGB space, will be considered identical. Defaults to 3.5.
    • build

      public PaletteSpreadSource build()