/** * Changes this color palette to allow variation in hue and saturation component. * @param brightnessConstant the new constant value for the brightness component. */ public void setHueSaturationBased(double brightnessConstant) { setHueSaturationBased(DEFAULT_RESOLUTION, DEFAULT_RESOLUTION, brightnessConstant); }
/** * Creates a color palette with the brightness constant and set to {@code 1.0}. The two other components have a resolution of {@value #DEFAULT_RESOLUTION}. */ public TextureColorPalette2D() { setHueSaturationBased(1.0); }
/** * Creates a color palette with the brightness constant and set to {@code 1.0}. The two other components have a resolution of {@value #DEFAULT_RESOLUTION}. */ public TextureColorPalette2D() { setHueSaturationBased(1.0); }
/** * Changes this color palette to allow variation in hue and saturation component. * @param brightnessConstant the new constant value for the brightness component. */ public void setHueSaturationBased(double brightnessConstant) { setHueSaturationBased(DEFAULT_RESOLUTION, DEFAULT_RESOLUTION, brightnessConstant); }