/** * Apply the shade * * For a shade, the equation is luminance * %tint. */ private static void applyShade(double[] hsl, ColorStyle fc) { int shade = fc.getShade(); if (shade == -1) { return; } double shadePct = shade / 100000.; hsl[2] *= 1. - shadePct; }
@Override public int getShade() { return scale(orig.getShade(), PaintModifier.DARKEN_LESS, PaintModifier.DARKEN); }
/** * Apply the shade * * For a shade, the equation is luminance * %tint. */ private static void applyShade(double[] hsl, ColorStyle fc) { int shade = fc.getShade(); if (shade == -1) { return; } double shadePct = shade / 100000.; hsl[2] *= 1. - shadePct; }
@Override public int getShade() { return scale(orig.getShade(), PaintModifier.DARKEN_LESS, PaintModifier.DARKEN); }