|
101 | 101 | * Kelvin). Where color temperature PercentType values are internally converted to Mired values on the percentage scale |
102 | 102 | * between the configured {@link #coolestMired} and {@link #warmestMired} Mired values, and vice versa.</li> |
103 | 103 | * |
104 | | - * the color temperature changes then the HS values are adapted to match the corresponding color temperature point on |
105 | | - * the Planckian Locus in the CIE color chart.</li> |
| 104 | + * <li>When the color temperature changes then the HS values are adapted to match the corresponding color temperature |
| 105 | + * point on the Planckian Locus in the CIE color chart.</li> |
106 | 106 | * |
107 | 107 | * <li>It handles input/output values in RGB format in the range [0..255]. The behavior depends on the |
108 | 108 | * {@link #rgbLinkedToBrightness} setting. If {@link #rgbLinkedToBrightness} is true the RGB values read/write all three |
@@ -293,7 +293,7 @@ public class LightModel { |
293 | 293 | * <li>{@link #warmestMired} is 500 (the 'warmest' white color temperature)</li> |
294 | 294 | * <li>{@link #coolestMired} is 153 (the 'coolest' white color temperature)</li> |
295 | 295 | * <li>{@link #stepSize} is 10.0 (the step size for IncreaseDecreaseType commands)</li> |
296 | | - * <li>{@link #warmBias} is 0,5 (the bias for warm white in RGBCW mode)</li> |
| 296 | + * <li>{@link #warmBias} is 0.5 (the bias for warm white in RGBCW mode)</li> |
297 | 297 | * </ul> |
298 | 298 | */ |
299 | 299 | public LightModel() { |
@@ -851,7 +851,7 @@ public void setMired(double mired) throws IllegalArgumentException { |
851 | 851 | "Mired value '%f' out of range [%f..%f]".formatted(mired, coolestMired, warmestMired)); |
852 | 852 | } |
853 | 853 | if (!Double.isNaN(mired)) { // don't update color if Mired is not known |
854 | | - HSBType hsb = ColorUtil.xyToHsb(ColorUtil.kelvinToXY(1000000 / cachedMired)); |
| 854 | + HSBType hsb = ColorUtil.xyToHsb(ColorUtil.kelvinToXY(1000000 / mired)); |
855 | 855 | cachedHSB = new HSBType(hsb.getHue(), hsb.getSaturation(), cachedHSB.getBrightness()); |
856 | 856 | } |
857 | 857 | cachedMired = mired; |
|
0 commit comments