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

Commit 35d2621b authored by Mike Reed's avatar Mike Reed Committed by Android (Google) Code Review
Browse files

Merge "update dox"

parents eba3bb06 7df95159
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -38,15 +38,15 @@ public class AvoidXfermode extends Xfermode {
     *
     * There are two modes, and each mode interprets a tolerance value.
     *
     * AVOID: In this mode, drawing is allowed only on destination pixels that
     * Avoid: In this mode, drawing is allowed only on destination pixels that
     * are different from the op-color.
     *   Tolerance near 0: avoid anything close to the op-color
     *   Tolerance near 255: avoid only colors very close to the op-color
     *
     * TARGET: In this mode, drawing only occurs on destination pixels that
     * Tolerance near 0: avoid any colors even remotely similar to the op-color
     * Tolerance near 255: avoid only colors nearly identical to the op-color
     
     * Target: In this mode, drawing only occurs on destination pixels that
     * are similar to the op-color
     *   Tolerance near 0: draw on colors that are very close to op-color
     *   Tolerance near 255: draw on colors that  to the op-color
     * Tolerance near 0: draw only on colors that are nearly identical to the op-color
     * Tolerance near 255: draw on any colors even remotely similar to the op-color
     */
    public AvoidXfermode(int opColor, int tolerance, Mode mode) {
        if (tolerance < 0 || tolerance > 255) {