public void setNumColors(int numColors) {
        this.numColors = numColors;
        if (material != null) {
            material.setInt("NumColors", numColors);
        }
    }
Sets number of color levels used to draw the screen

@param numColors the desired number of colors (&gt;0, default=8)
jme3-effects/src/main/java/com/jme3/post/filters/PosterizationFilter.java