Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c4950dd authored by Tyler Freeman's avatar Tyler Freeman
Browse files

docs: fix LAB extrema documentation

Fix: 343778621
Flag: N/A
Test: manual using go/BeeShell:

bsh> com.android.internal.graphics.ColorUtils.colorToLAB(android.graphics.Color.WHITE, lab);
$19 = null
bsh> Arrays.toString(lab)
$20 = "[100.0, 0.00526049995830391, -0.010408184525267927]"

bsh> xyz = new double[3];
$22 = [D@fbe51c5
bsh> com.android.internal.graphics.ColorUtils.RGBToXYZ(255, 255, 255, xyz);
$23 = null
bsh> Arrays.toString(xyz)
$24 = "[95.05, 100.0, 108.89999999999999]"
bsh> com.android.internal.graphics.ColorUtils.XYZToLAB(xyz[0], xyz[1], xyz[2], lab);
$25 = null
bsh> Arrays.toString(lab)
$26 = "[100.0, 0.00526049995830391, -0.010408184525267927]"

Change-Id: I83ccf289578ac66d901d884433909e1b99b4ab40
parent 48a980e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ public final class ColorUtils {
     * Convert RGB components to its CIE Lab representative components.
     *
     * <ul>
     * <li>outLab[0] is L [0 ...1)</li>
     * <li>outLab[0] is L [0 ...100)</li>
     * <li>outLab[1] is a [-128...127)</li>
     * <li>outLab[2] is b [-128...127)</li>
     * </ul>
@@ -474,7 +474,7 @@ public final class ColorUtils {
     * 2° Standard Observer (1931).</p>
     *
     * <ul>
     * <li>outLab[0] is L [0 ...1)</li>
     * <li>outLab[0] is L [0 ...100)</li>
     * <li>outLab[1] is a [-128...127)</li>
     * <li>outLab[2] is b [-128...127)</li>
     * </ul>