diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 82fedb219..84c0d0a8a 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -11541,9 +11541,9 @@ public class PApplet extends Applet /** - * + * * @param level either 2, 4, or 8 - */ + */ public void smooth(int level) { if (recorder != null) recorder.smooth(level); g.smooth(level); diff --git a/java/examples/Basics/Input/Clock/Clock.pde b/java/examples/Basics/Input/Clock/Clock.pde index cfcd16c31..09c45740e 100644 --- a/java/examples/Basics/Input/Clock/Clock.pde +++ b/java/examples/Basics/Input/Clock/Clock.pde @@ -55,8 +55,9 @@ void draw() { strokeWeight(2); beginShape(POINTS); for (int a = 0; a < 360; a+=6) { - float x = cx + cos(radians(a)) * secondsRadius; - float y = cy + sin(radians(a)) * secondsRadius; + float angle = radians(a); + float x = cx + cos(angle) * secondsRadius; + float y = cy + sin(angle) * secondsRadius; vertex(x, y); } endShape(); diff --git a/java/examples/Basics/Input/Easing/Easing.pde b/java/examples/Basics/Input/Easing/Easing.pde index 82bdb5b67..c3772d05a 100644 --- a/java/examples/Basics/Input/Easing/Easing.pde +++ b/java/examples/Basics/Input/Easing/Easing.pde @@ -11,26 +11,23 @@ float x; float y; -float targetX, targetY; float easing = 0.05; -void setup() -{ +void setup() { size(640, 360); noStroke(); } -void draw() -{ +void draw() { background(51); - targetX = mouseX; + float targetX = mouseX; float dx = targetX - x; if(abs(dx) > 1) { x += dx * easing; } - targetY = mouseY; + float targetY = mouseY; float dy = targetY - y; if(abs(dy) > 1) { y += dy * easing; diff --git a/java/examples/Basics/Input/KeyboardFunctions/KeyboardFunctions.pde b/java/examples/Basics/Input/KeyboardFunctions/KeyboardFunctions.pde index a97896474..f0554ab93 100644 --- a/java/examples/Basics/Input/KeyboardFunctions/KeyboardFunctions.pde +++ b/java/examples/Basics/Input/KeyboardFunctions/KeyboardFunctions.pde @@ -26,11 +26,11 @@ void setup() { size(640, 360); noStroke(); - colorMode(RGB, numChars); + colorMode(HSB, numChars); background(numChars/2); // Set a gray value for each key - for(int i=0; i