mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Update to latest JOGL
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
PImage img;
|
||||
int level = 2;
|
||||
|
||||
public void setup() {
|
||||
size(200, 200, P3D);
|
||||
frameRate(90);
|
||||
smooth(level);
|
||||
|
||||
img = loadImage("milan_rubbish.jpg");
|
||||
}
|
||||
|
||||
public void draw () {
|
||||
background(0);
|
||||
|
||||
tint(255, 150);
|
||||
image(img, 0, 0, width, height);
|
||||
|
||||
fill(255);
|
||||
text("current smooth: " + level, mouseX, mouseY);
|
||||
}
|
||||
|
||||
void keyPressed() {
|
||||
level = 4;
|
||||
smooth(level);
|
||||
}
|
||||
|
||||
+4
-1
@@ -17,7 +17,8 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(640, 360, P3D);
|
||||
frameRate(120);
|
||||
frameRate(60);
|
||||
noSmooth();
|
||||
noStroke();
|
||||
}
|
||||
|
||||
@@ -49,6 +50,8 @@ void draw() {
|
||||
}
|
||||
popMatrix();
|
||||
|
||||
hint(ENABLE_DEPTH_TEST);
|
||||
|
||||
fcount += 1;
|
||||
int m = millis();
|
||||
if (m - lastm > 1000 * fint) {
|
||||
|
||||
@@ -11,7 +11,8 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(640, 360, P3D);
|
||||
frameRate(120);
|
||||
frameRate(60);
|
||||
noSmooth();
|
||||
noStroke();
|
||||
|
||||
grid = createShape(PShape.GROUP);
|
||||
@@ -98,6 +99,8 @@ void draw() {
|
||||
shape(grid);
|
||||
popMatrix();
|
||||
|
||||
hint(ENABLE_DEPTH_TEST);
|
||||
|
||||
fcount += 1;
|
||||
int m = millis();
|
||||
if (m - lastm > 1000 * fint) {
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(640, 480, P3D);
|
||||
frameRate(240);
|
||||
frameRate(120);
|
||||
|
||||
sprite = loadImage("sprite.png");
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(640, 480, P3D);
|
||||
frameRate(240);
|
||||
frameRate(120);
|
||||
|
||||
particles = createShape(PShape.GROUP);
|
||||
sprite = loadImage("sprite.png");
|
||||
|
||||
@@ -16,6 +16,8 @@ float ry =0;
|
||||
|
||||
void setup() {
|
||||
size(1024, 768, P3D);
|
||||
noSmooth();
|
||||
frameRate(120);
|
||||
radio = height/3.5;
|
||||
|
||||
lista = new pelo[cuantos];
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(800, 600, P3D);
|
||||
frameRate(240);
|
||||
frameRate(60);
|
||||
|
||||
sprite = loadImage("sprite.png");
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ int fint = 3;
|
||||
|
||||
void setup() {
|
||||
size(800, 600, P3D);
|
||||
frameRate(240);
|
||||
frameRate(60);
|
||||
|
||||
particles = createShape(PShape.GROUP);
|
||||
sprite = loadImage("sprite.png");
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
void setup() {
|
||||
size(400, 400, P3D);
|
||||
noLoop();
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(255, 0, 0);
|
||||
ellipse(mouseX, mouseY, 100, 50);
|
||||
println("draw");
|
||||
}
|
||||
|
||||
void keyPressed() {
|
||||
redraw();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
void setup() {
|
||||
size(400, 400, P3D);
|
||||
frame.setResizable(true);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(255, 0, 0);
|
||||
ellipse(width/2, height/2, 100, 50);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
void setup() {
|
||||
size(400, 400, P3D);
|
||||
smooth(2);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
background(255, 0, 0);
|
||||
ellipse(mouseX, mouseY, 100, 100);
|
||||
}
|
||||
|
||||
void keyPressed() {
|
||||
if (key == '1') smooth(1);
|
||||
else if (key == '2') smooth(2);
|
||||
else if (key == '3') smooth(4);
|
||||
else if (key == '4') smooth(8);
|
||||
else if (key == '5') smooth(16);
|
||||
else if (key == '6') smooth(32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user