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:
@@ -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