diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index fdf6a7ea7..acfc0a460 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -15955,8 +15955,8 @@ public class PApplet implements PConstants { * @param sy Y coordinate of the source's upper left corner * @param sw source image width * @param sh source image height - * @param dx X coordinate of the destinations's upper left corner - * @param dy Y coordinate of the destinations's upper left corner + * @param dx X coordinate of the destination's upper left corner + * @param dy Y coordinate of the destination's upper left corner * @param dw destination image width * @param dh destination image height * @param mode Either BLEND, ADD, SUBTRACT, LIGHTEST, DARKEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, BURN diff --git a/core/src/processing/core/PImage.java b/core/src/processing/core/PImage.java index 2ce61425e..145ad4a42 100644 --- a/core/src/processing/core/PImage.java +++ b/core/src/processing/core/PImage.java @@ -216,7 +216,7 @@ public class PImage implements PConstants, Cloneable { // toxi: is it maybe better to init the image with max alpha enabled? //for(int i=0; i currLum) { result = colDown; - currLum = lumDown; +// currLum = lumDown; // removed, unused assignment } outgoing[index++] = result; } @@ -1452,7 +1452,7 @@ public class PImage implements PConstants, Cloneable { } if (lumDown < currLum) { result = colDown; - currLum = lumDown; +// currLum = lumDown; // removed, unused assignment } outgoing[index++] = result; } @@ -1533,7 +1533,7 @@ public class PImage implements PConstants, Cloneable { * Clipped to 0..255, Photoshop calls this "Linear Burn", * and Director calls it "Add Pin". * - *
  • SUBTRACT - substractive blend with black clip: + *
  • SUBTRACT - subtractive blend with black clip: * C = max(B - A*factor, 0). * Clipped to 0..255, Photoshop calls this "Linear Dodge", * and Director calls it "Subtract Pin". @@ -1580,7 +1580,7 @@ public class PImage implements PConstants, Cloneable { * r1 + r2 - ((2 * r1 * r2) / 255) because 255 == 1.0 * not 256 == 1.0. In other words, (255*255)>>8 is not * the same as (255*255)/255. But for real-time use the shifts - * are preferrable, and the difference is insignificant for applications + * are preferable, and the difference is insignificant for applications * built with Processing.

    * * @webref color:creating_reading @@ -1683,8 +1683,8 @@ public class PImage implements PConstants, Cloneable { * @param sy Y coordinate of the source's upper left corner * @param sw source image width * @param sh source image height - * @param dx X coordinate of the destinations's upper left corner - * @param dy Y coordinate of the destinations's upper left corner + * @param dx X coordinate of the destination's upper left corner + * @param dy Y coordinate of the destination's upper left corner * @param dw destination image width * @param dh destination image height * @param mode Either BLEND, ADD, SUBTRACT, LIGHTEST, DARKEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, BURN @@ -2699,7 +2699,7 @@ int testFunction(int dst, int src) { /** - * Soft Light (Pegtop) + * Soft Light (peg top) * O = (1 - D) * MULTIPLY(D, S) + D * SCREEN(D, S) * O = (1 - D) * DS + D * (1 - (1 - D)(1 - S)) * O = 2DS + DD - 2DDS