r/processing • u/headlessBleu • Jul 07 '26
is there speed difference between java, java script, python, c++?
is one more stable than the others?
r/processing • u/headlessBleu • Jul 07 '26
is one more stable than the others?
r/processing • u/xrispy7 • Feb 06 '20
r/processing • u/[deleted] • Jan 22 '23
can i still access the legacy version of the processing reference (im assuming the version prior to processing 4.x)
really am sick of the new abomination that they have, its quite aggrivating sometimes
r/processing • u/blazicke • Nov 12 '23
I live in Istra and work in Italy, and I'm thinking about creating a community in one of these places. Any interest out there?
r/processing • u/Mc-Expert-De • Dec 01 '22
r/processing • u/HourGullible8750 • May 18 '26
//cruz de Malta curva
void setup() {
size(600, 600);
}
void draw() {
background(255,0,0);
// Recta vertical
fill(255);
noStroke();
rect(width/2 - width*0.12, 0, width*0.24, height);
//Elipse superior
fill(255,0,0);
noStroke();
ellipse(width/2, -320, 2000, 1150);
//Elipse inferior
fill(255);
noStroke();
ellipse(width/2, 920, 2000, 1150);
//Elipse izquierda
fill(255);
noStroke();
ellipse(-520, height/2, 2000, 1150);
//Elipse derecha
fill(255);
noStroke();
ellipse(1120, height/2, 2000, 1150);
// Recta horizontal
fill(255, 0, 0);
noStroke();
rect(0, height/2 - height*0.12, width, height*0.24);
}
r/processing • u/sunsetcarpet_ • Mar 18 '23
r/processing • u/moshe1990 • May 25 '23
r/processing • u/Olroy1234 • Oct 12 '18
r/processing • u/Forward-Market-6680 • Apr 15 '22
r/processing • u/[deleted] • Jan 23 '23
r/processing • u/Money-Ad3989 • Jun 02 '23
i have a project in Processing. i am trying to create basic platform game but i could not do it. Can someone help? In this code, I am trying to create a player and this player should go left and right and can jump with space. The blocks I call “stages” should move up and down along the y-axis. The player object I created should also jump on these blocks. If the player touches Lava, the game should stop and “You Failed” should be displayed on the screen. If he successfully passes all 5 blocks and touches the last platform, “Congratulations, You Win!!” should write. Thank you for your help in advance.
<
PImage imgLava,imgGrass, imgStone, imgP1;
boolean isJumping = false;void setup(){fullScreen(P3D);camZ = (height/2) / tan((PI*60.0)/360.0);
noStroke();textureMode(NORMAL);
imgLava = loadImage(“lava.jpeg”);imgGrass = loadImage(“grass.jpg”);imgStone= loadImage(“stone.png”);imgP1= loadImage(“p1.png”);
}float camZ = 0;
void draw(){background(0);/camera(width/2, height/2, camZ, //camx, camy, camzwidth/2, height/2, 0, //lookx, looky, lookz0, 1, 0 //eyex, eyey, eyez);/camera(0, 0, camZ,0, 0, 0,0, 1, 0);
rotateX(rotX + distY);rotateY(rotY + distX);
scale(20);
drawLava();drawPlatform();drawStage();drawEndPlatform();drawPlayer();if(keyPressed){if(keyCode == UP)camZ -= 5;if(keyCode == DOWN)camZ += 5;
}
}
void drawLava(){int w = 1;int h = 1;beginShape(QUAD);texture(imgLava);
vertex(-5, 1.0000, -54, 0, 0);vertex(5, 1.0000, -54, w, 0);vertex(5, 1.0000, 0, w, h);vertex(-5, 1.0000, 0, 0, h);endShape();}
void drawPlatform(){int w = 1;int h = 1;beginShape(QUAD);texture(imgGrass);
vertex(-2, 0.999, 0, 0, 0);vertex(2, 0.999, 0, w, 0);vertex(2, 0.999, -5, w, h);vertex(-2, 0.999, -5, 0, h);endShape();
}int w=1,h=1;void drawStage(){
beginShape(QUADS); texture(imgStone);
//+Z facevertex(-1, -1, -10, 0, 0); //upper left cornervertex(1, -1, -10, w, 0); //upper right cornervertex(1, 1, -10, w, h); //bottom right cornervertex(-1, 1, -10, 0, h); //bottom left corner
//-Z facevertex(-1, -1, -15, 0, 0); //upper left cornervertex(1, -1, -15, w, 0); //upper right cornervertex(1, 1, -15, w, h); //bottom right cornervertex(-1, 1, -15, 0, h); //bottom left corner
//+X facevertex(1, -1, -10, 0, 0); //upper left cornervertex(1, -1, -15, w, 0);vertex(1, 1, -15, w, h);vertex(1, 1, -10, 0, h);
//-X facevertex(-1, -1, -10, 0, 0); //upper left cornervertex(-1, -1, -15, w, 0);vertex(-1, 1, -15, w, h);vertex(-1, 1, -10, 0, h);
//-Y facevertex(-1, -1, -10, 0, 0);vertex(1, -1, -10, w, 0);vertex(1, -1, -15, w, h);vertex(-1, -1, -15, 0, h);
//+Y facevertex(-1, 1, -10, 0, 0);vertex(1, 1, -10, w, 0);vertex(1, 1, -15, w, h);vertex(-1, 1, -15, 0, h);endShape();
beginShape(QUADS);texture(imgStone);
//+Z facevertex(-1, -1, -20, 0, 0); //upper left cornervertex(1, -1, -20 ,w, 0); //upper right cornervertex(1, 1, -20, w, h); //bottom right cornervertex(-1, 1, -20, 0, h); //bottom left corner
//-Z facevertex(-1, -1, -25, 0, 0); //upper left cornervertex(1, -1, -25, w, 0); //upper right cornervertex(1, 1, -25, w, h); //bottom right cornervertex(-1, 1, -25, 0, h); //bottom left corner
//+X facevertex(1, -1, -20, 0, 0); //upper left cornervertex(1, -1, -25, w, 0);vertex(1, 1, -25, w, h);vertex(1, 1, -20, 0, h);
//-X facevertex(-1, -1, -20, 0, 0); //upper left cornervertex(-1, -1, -25, w, 0);vertex(-1, 1, -25, w, h);vertex(-1, 1, -20, 0, h);
//-Y facevertex(-1, -1, -20, 0, 0);vertex(1, -1, -20, w, 0);vertex(1, -1, -25, w, h);vertex(-1, -1, -25, 0, h);
//+Y facevertex(-1, 1, -20, 0, 0);vertex(1, 1, -20, w, 0);vertex(1, 1, -25, w, h);vertex(-1, 1, -25, 0, h);endShape();
beginShape(QUADS); texture(imgStone);
//+Z facevertex(-1, -1, -30, 0, 0); //upper left cornervertex(1, -1, -30 ,w, 0); //upper right cornervertex(1, 1, -30, w, h); //bottom right cornervertex(-1, 1, -30, 0, h); //bottom left corner
//-Z facevertex(-1, -1, -35, 0, 0); //upper left cornervertex(1, -1, -35, w, 0); //upper right cornervertex(1, 1, -35, w, h); //bottom right cornervertex(-1, 1, -35, 0, h); //bottom left corner
//+X facevertex(1, -1, -30, 0, 0); //upper left cornervertex(1, -1, -35, w, 0);vertex(1, 1, -35, w, h);vertex(1, 1, -30, 0, h);
//-X facevertex(-1, -1, -30, 0, 0); //upper left cornervertex(-1, -1, -35, w, 0);vertex(-1, 1, -35, w, h);vertex(-1, 1, -30, 0, h);
//-Y facevertex(-1, -1, -30, 0, 0);vertex(1, -1, -30, w, 0);vertex(1, -1, -35, w, h);vertex(-1, -1, -35, 0, h);
//+Y facevertex(-1, 1, -30, 0, 0);vertex(1, 1, -30, w, 0);vertex(1, 1, -35, w, h);vertex(-1, 1, -35, 0, h);endShape();
beginShape(QUADS); texture(imgStone);
//+Z facevertex(-1, -1, -40, 0, 0); //upper left cornervertex(1, -1, -40 ,w, 0); //upper right cornervertex(1, 1, -40, w, h); //bottom right cornervertex(-1, 1, -40, 0, h); //bottom left corner
//-Z facevertex(-1, -1, -45, 0, 0); //upper left cornervertex(1, -1, -45, w, 0); //upper right cornervertex(1, 1, -45, w, h); //bottom right cornervertex(-1, 1, -45, 0, h); //bottom left corner
//+X facevertex(1, -1, -40, 0, 0); //upper left cornervertex(1, -1, -45, w, 0);vertex(1, 1, -45, w, h);vertex(1, 1, -40, 0, h);
//-X facevertex(-1, -1, -40, 0, 0); //upper left cornervertex(-1, -1, -45, w, 0);vertex(-1, 1, -45, w, h);vertex(-1, 1, -40, 0, h);
//-Y facevertex(-1, -1, -40, 0, 0);vertex(1, -1, -40, w, 0);vertex(1, -1, -45, w, h);vertex(-1, -1, -45, 0, h);
//+Y facevertex(-1, 1, -40, 0, 0);vertex(1, 1, -40, w, 0);vertex(1, 1, -45, w, h);vertex(-1, 1, -45, 0, h);endShape();}void drawEndPlatform(){int w = 1;int h = 1;beginShape(QUAD);texture(imgGrass);
vertex(-2, 0.999, -49, 0, 0);vertex(2, 0.999, -49, w, 0);vertex(2, 0.999, -54, w, h);vertex(-2, 0.999, -54, 0, h);endShape();
}void drawPlayer(){beginShape(QUADS);texture(imgP1);
//+Z facevertex(-0.25, 0.75, -1, 0, 0); //upper left cornervertex(0.25, 0.75, -1, w, 0); //upper right cornervertex(0.25, 0.998, -1, w, h); //bottom right cornervertex(-0.25, 0.998, -1, 0, h); //bottom left corner
//-Z facevertex(-0.25, 0.75, -1.5, 0, 0); //upper left cornervertex(0.25, 0.75, -1.5, w, 0); //upper right cornervertex(0.25, 0.998, -1.5, w, h); //bottom right cornervertex(-0.25, 0.998, -1.5, 0, h); //bottom left corner
//+X facevertex(0.25, 0.75, -1.0, 0, 0); //upper left cornervertex(0.25, 0.75, -1.5, w, 0);vertex(0.25, 0.998, -1.5, w, h);vertex(0.25, 0.998, -1.0, 0, h);
//-X facevertex(-0.25, 0.75, -1.0, 0, 0); //upper left cornervertex(-0.25, 0.75, -1.5, w, 0);vertex(-0.25, 0.998, -1.5, w, h);vertex(-0.25, 0.998, -1.0, 0, h);
//-Y facevertex(-0.25, 0.75, -1.0, 0, 0);vertex(0.25, 0.75, -1.0, w, 0);vertex(0.25, 0.75, -1.5, w, h);vertex(-0.25, 0.75, -1.5, 0, h);
//+Y facevertex(-0.25, 0.998, -1.0, 0, 0);vertex(0.25, 0.998, -1.0, w, 0);vertex(0.25, 0.998, -1.5, w, h);vertex(-0.25, 0.998, -1.5, 0, h);endShape();
}
float rotX = 0, rotY = 0;float lastX, lastY;float distX, distY;
void mousePressed(){lastX = mouseX;lastY = mouseY;}
void mouseDragged(){distX = radians(mouseX - lastX);distY = radians(lastY - mouseY);}void mouseReleased(){rotX += distY;rotY += distX;distX = distY = 0;}
r/processing • u/Akwagaming97 • May 16 '22
r/processing • u/ThaSig • Mar 02 '21
r/processing • u/OU_ohyeah • Dec 15 '15
I really want to write something cool for my girl friend(possibly for x-mas) it can be anything. I have literally thousands of great shots of her face because for a while I was going to write some facial recognition software.
If you have any ideas of what sort of cute little program I could write I'd greatly appreciate it.
r/processing • u/100MrTiconderoga001 • Jan 22 '19
r/processing • u/seoceojoe • Feb 23 '16
r/processing • u/Game_Geek6 • Jan 20 '21
Here is the error message
TypeError: rect(): 1st arg can't be coerced to floatAnd here is the error description:
processing.app.SketchException: TypeError: rect(): 2nd arg can't be coerced to float
at jycessing.mode.run.SketchRunner.convertPythonSketchError(Unknown Source)
at jycessing.mode.run.SketchRunner.lambda$startSketch$3(Unknown Source)
at java.lang.Thread.run(Thread.java:748)It pops up when I try to call the "rect" function to create a rectangle. Let me know if you need my whole code I can send it in replies if it is needed.
Hopefully, you guys have seen this before or something I am very confused. I will be back as soon as I can to try to figure this out again. Thanks in advance!
EDIT: My problem is solved turns out my function was structured really poorly and it would return a None which would cause the rect() function to fail. Thank you guys for trying to help anyway!
r/processing • u/Lazy-Mix6955 • Aug 23 '22
Hi everyone!
I recently made an emoji generation software using Processing. It would be great if y'all can fill my survey and leave comments too!
Thanks in advance!
r/processing • u/GitNation • Nov 16 '23
Hey folks🔥 The GitNation team is searching for talented engineers, creative coders, and artists interested in showcasing JavaScript-related works of art at the world's biggest JavaScript & React events.
We are currently seeking artists in the following categories:
▶️Exhibition: GIFs, Videos, Processing sketches, Code Snippets, still images.
▶️Performance: Video documentation and artist description.
▶️Installations: Diagrams and build plans.
Winners will enjoy such perks as⭐️compensation for participating in the exhibition/performance and video pieces, a complimentary pass to the conference and guest spots for the after-party, the chance to present your artwork to a diverse audience of professionals.
To submit your work, please fill out this form: https://docs.google.com/forms/d/e/1FAIpQLSdgxBRJF1E46A3OEvC_QZcKJrnriHhPD4Hs5VVokie38nAO0A/viewform
r/processing • u/Jimmyboy142 • May 02 '21
I have to write a program in processing (java) that starts a line in the middle and has a lenght of random(0, 39); and a random direction west, east, north and south random(0, 3); and stops when the accumulated lenght goes over 1500. I've been trying hard but can't wrap my head around the directions part and accumulation tracking. Thanks for the help.
