use of org.fxyz.utils.Palette.ColorPalette in project FXyzLib by Birdasaur.
the class OBJWriter method setTextureColors.
public void setTextureColors(int numColors, ColorPalette colorPalette) {
if (numColors > 0) {
defaultTexture = TextureType.COLORED_VERTICES_3D;
Palette palette = new Palette(numColors, colorPalette);
palette.createPalette(true);
diffuseMap = "palette_" + numColors + ".png";
}
}
use of org.fxyz.utils.Palette.ColorPalette in project FXyzLib by Birdasaur.
the class TriangleMeshHelper method createPalette.
public void createPalette(int colors, boolean save, ColorPalette palette_colors) {
this.colors = colors;
palette = new Palette(colors, palette_colors);
palette.createPalette(save);
}
Aggregations