Finish fix of preproc handeling of smooth.

Fixes #149 as reported by @benfry.
This commit is contained in:
A Pottinger
2020-11-21 11:59:25 -08:00
parent c41e4d24ad
commit 721046b593
6 changed files with 84 additions and 38 deletions
+11 -17
View File
@@ -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" };