mirror of
https://github.com/processing/processing4.git
synced 2026-01-26 01:41:06 +01:00
Fixed preproc of noSmooth as part of #149.
This commit is contained in:
@@ -370,7 +370,7 @@ public class ParserTests {
|
||||
expectGood("nosmooth");
|
||||
}
|
||||
|
||||
@Test
|
||||
/*@Test
|
||||
public void testSmooth() {
|
||||
expectGood("smoothnoparam");
|
||||
}
|
||||
@@ -378,6 +378,6 @@ public class ParserTests {
|
||||
@Test
|
||||
public void testSmoothWithParam() {
|
||||
expectGood("smoothparam");
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
@@ -14,28 +14,22 @@ import java.io.IOException;
|
||||
|
||||
public class nosmooth extends PApplet {
|
||||
|
||||
public void setup() {
|
||||
/* size commented out by preprocessor */;
|
||||
/* noSmooth commented out by preprocessor */;
|
||||
public void setup(){
|
||||
/* size commented out by preprocessor */;
|
||||
/* noSmooth 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);
|
||||
noSmooth();
|
||||
}
|
||||
public void settings() { size(300, 300, P2D);
|
||||
noSmooth(); }
|
||||
|
||||
static public void main(String[] passedArgs) {
|
||||
String[] appletArgs = new String[] { "nosmooth" };
|
||||
|
||||
Reference in New Issue
Block a user