mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Finish fix of preproc handeling of smooth.
Fixes #149 as reported by @benfry.
This commit is contained in:
@@ -16,7 +16,7 @@ public class bug315g extends PApplet {
|
||||
|
||||
public void setup() {
|
||||
/* size commented out by preprocessor */;
|
||||
smooth();
|
||||
/* smooth commented out by preprocessor */;
|
||||
int y;
|
||||
y = 60;
|
||||
int d;
|
||||
@@ -25,7 +25,8 @@ ellipse(75, y, d, d);
|
||||
noLoop();
|
||||
}
|
||||
|
||||
public void settings() { size(480,120); }
|
||||
public void settings() { size(480,120);
|
||||
smooth();}
|
||||
|
||||
static public void main(String[] passedArgs) {
|
||||
String[] appletArgs = new String[] { "bug315g" };
|
||||
|
||||
@@ -14,28 +14,22 @@ import java.io.IOException;
|
||||
|
||||
public class smoothnoparam extends PApplet {
|
||||
|
||||
public void setup() {
|
||||
/* size commented out by preprocessor */;
|
||||
/* smooth commented out by preprocessor */;
|
||||
public void setup(){
|
||||
/* size commented out by preprocessor */;
|
||||
/* smooth commented out by preprocessor */;
|
||||
}
|
||||
|
||||
@Override public void draw() {
|
||||
background(0);
|
||||
fill(255,0,0);
|
||||
ellipse(100,100,100,100);
|
||||
fill(0,255,0);
|
||||
ellipse(150,150,100,100);
|
||||
}
|
||||
|
||||
class Test {
|
||||
private void draw() {}
|
||||
public void draw(){
|
||||
background(0);
|
||||
fill(255,0,0);
|
||||
ellipse(100,100,100,100);
|
||||
fill(0,255,0);
|
||||
ellipse(150,150,100,100);
|
||||
}
|
||||
|
||||
|
||||
public void settings() {
|
||||
size(300,300, P2D);
|
||||
smooth();
|
||||
}
|
||||
public void settings() { size(300, 300, P2D);
|
||||
smooth(); }
|
||||
|
||||
static public void main(String[] passedArgs) {
|
||||
String[] appletArgs = new String[] { "smoothnoparam" };
|
||||
|
||||
@@ -14,28 +14,22 @@ import java.io.IOException;
|
||||
|
||||
public class smoothparam extends PApplet {
|
||||
|
||||
public void setup() {
|
||||
/* size commented out by preprocessor */;
|
||||
/* smooth commented out by preprocessor */;
|
||||
public void setup(){
|
||||
/* size commented out by preprocessor */;
|
||||
/* smooth commented out by preprocessor */;
|
||||
}
|
||||
|
||||
@Override public void draw() {
|
||||
background(0);
|
||||
fill(255,0,0);
|
||||
ellipse(100,100,100,100);
|
||||
fill(0,255,0);
|
||||
ellipse(150,150,100,100);
|
||||
}
|
||||
|
||||
class Test {
|
||||
private void draw() {}
|
||||
public void draw(){
|
||||
background(0);
|
||||
fill(255,0,0);
|
||||
ellipse(100,100,100,100);
|
||||
fill(0,255,0);
|
||||
ellipse(150,150,100,100);
|
||||
}
|
||||
|
||||
|
||||
public void settings() {
|
||||
size(300,300, P2D);
|
||||
smooth(4);
|
||||
}
|
||||
public void settings() { size(300, 300, P2D);
|
||||
smooth(4); }
|
||||
|
||||
static public void main(String[] passedArgs) {
|
||||
String[] appletArgs = new String[] { "smoothparam" };
|
||||
|
||||
Reference in New Issue
Block a user