Search in sources :

Example 1 with ColorPalette

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";
    }
}
Also used : ColorPalette(org.fxyz.utils.Palette.ColorPalette)

Example 2 with ColorPalette

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);
}
Also used : Palette(org.fxyz.utils.Palette) ColorPalette(org.fxyz.utils.Palette.ColorPalette)

Aggregations

ColorPalette (org.fxyz.utils.Palette.ColorPalette)2 Palette (org.fxyz.utils.Palette)1