r/processing • • Jul 07 '26

is there speed difference between java, java script, python, c++?

0 Upvotes

is one more stable than the others?


r/processing • • Feb 06 '20

This guy makes BADASS Generative Art with A.i Refik Anadol Artist Showcase

Thumbnail
youtu.be
1 Upvotes

r/processing • • Jan 22 '23

Help request old processing reference?

1 Upvotes

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 • • Nov 12 '23

Is here anybody from Istra, Croatia or Fvg, Italy?

0 Upvotes

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 • • Dec 01 '22

im a beginner, i need help. Why does it say "missing right curly bracket"?

Post image
1 Upvotes

r/processing • • May 18 '26

What is the mistake?

Post image
1 Upvotes

//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 • • Mar 18 '23

Help request Comment mettre une texture sur un rectangle en processing python ?

Thumbnail
gallery
0 Upvotes

r/processing • • May 25 '23

Co-wrote this processing code with chat GPT in 30 mins

0 Upvotes

r/processing • • Oct 12 '18

I got tired of working on my broken code so I made a meme

Post image
9 Upvotes

r/processing • • Apr 15 '22

We are gonna launch it as an NFT soon. We are really proud of ourselves since it is our first real project.

0 Upvotes

r/processing • • Jan 23 '23

Homework hint request Does anyone know how to make an image show up and when clicked a second time, a different image shows up

0 Upvotes

r/processing • • Jun 22 '21

Inner Peace

3 Upvotes

r/processing • • Jun 02 '23

Beginner help request Please help It is important !! 3D Platform Game

2 Upvotes

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, camz
width/2, height/2, 0, //lookx, looky, lookz
0, 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 face
vertex(-1, -1, -10, 0, 0); //upper left corner
vertex(1, -1, -10, w, 0); //upper right corner
vertex(1, 1, -10, w, h); //bottom right corner
vertex(-1, 1, -10, 0, h); //bottom left corner

//-Z face
vertex(-1, -1, -15, 0, 0); //upper left corner
vertex(1, -1, -15, w, 0); //upper right corner
vertex(1, 1, -15, w, h); //bottom right corner
vertex(-1, 1, -15, 0, h); //bottom left corner

//+X face
vertex(1, -1, -10, 0, 0); //upper left corner
vertex(1, -1, -15, w, 0);
vertex(1, 1, -15, w, h);
vertex(1, 1, -10, 0, h);

//-X face
vertex(-1, -1, -10, 0, 0); //upper left corner
vertex(-1, -1, -15, w, 0);
vertex(-1, 1, -15, w, h);
vertex(-1, 1, -10, 0, h);

//-Y face
vertex(-1, -1, -10, 0, 0);
vertex(1, -1, -10, w, 0);
vertex(1, -1, -15, w, h);
vertex(-1, -1, -15, 0, h);

//+Y face
vertex(-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 face
vertex(-1, -1, -20, 0, 0); //upper left corner
vertex(1, -1, -20 ,w, 0); //upper right corner
vertex(1, 1, -20, w, h); //bottom right corner
vertex(-1, 1, -20, 0, h); //bottom left corner

//-Z face
vertex(-1, -1, -25, 0, 0); //upper left corner
vertex(1, -1, -25, w, 0); //upper right corner
vertex(1, 1, -25, w, h); //bottom right corner
vertex(-1, 1, -25, 0, h); //bottom left corner

//+X face
vertex(1, -1, -20, 0, 0); //upper left corner
vertex(1, -1, -25, w, 0);
vertex(1, 1, -25, w, h);
vertex(1, 1, -20, 0, h);

//-X face
vertex(-1, -1, -20, 0, 0); //upper left corner
vertex(-1, -1, -25, w, 0);
vertex(-1, 1, -25, w, h);
vertex(-1, 1, -20, 0, h);

//-Y face
vertex(-1, -1, -20, 0, 0);
vertex(1, -1, -20, w, 0);
vertex(1, -1, -25, w, h);
vertex(-1, -1, -25, 0, h);

//+Y face
vertex(-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 face
vertex(-1, -1, -30, 0, 0); //upper left corner
vertex(1, -1, -30 ,w, 0); //upper right corner
vertex(1, 1, -30, w, h); //bottom right corner
vertex(-1, 1, -30, 0, h); //bottom left corner

//-Z face
vertex(-1, -1, -35, 0, 0); //upper left corner
vertex(1, -1, -35, w, 0); //upper right corner
vertex(1, 1, -35, w, h); //bottom right corner
vertex(-1, 1, -35, 0, h); //bottom left corner

//+X face
vertex(1, -1, -30, 0, 0); //upper left corner
vertex(1, -1, -35, w, 0);
vertex(1, 1, -35, w, h);
vertex(1, 1, -30, 0, h);

//-X face
vertex(-1, -1, -30, 0, 0); //upper left corner
vertex(-1, -1, -35, w, 0);
vertex(-1, 1, -35, w, h);
vertex(-1, 1, -30, 0, h);

//-Y face
vertex(-1, -1, -30, 0, 0);
vertex(1, -1, -30, w, 0);
vertex(1, -1, -35, w, h);
vertex(-1, -1, -35, 0, h);

//+Y face
vertex(-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 face
vertex(-1, -1, -40, 0, 0); //upper left corner
vertex(1, -1, -40 ,w, 0); //upper right corner
vertex(1, 1, -40, w, h); //bottom right corner
vertex(-1, 1, -40, 0, h); //bottom left corner

//-Z face
vertex(-1, -1, -45, 0, 0); //upper left corner
vertex(1, -1, -45, w, 0); //upper right corner
vertex(1, 1, -45, w, h); //bottom right corner
vertex(-1, 1, -45, 0, h); //bottom left corner

//+X face
vertex(1, -1, -40, 0, 0); //upper left corner
vertex(1, -1, -45, w, 0);
vertex(1, 1, -45, w, h);
vertex(1, 1, -40, 0, h);

//-X face
vertex(-1, -1, -40, 0, 0); //upper left corner
vertex(-1, -1, -45, w, 0);
vertex(-1, 1, -45, w, h);
vertex(-1, 1, -40, 0, h);

//-Y face
vertex(-1, -1, -40, 0, 0);
vertex(1, -1, -40, w, 0);
vertex(1, -1, -45, w, h);
vertex(-1, -1, -45, 0, h);

//+Y face
vertex(-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 face
vertex(-0.25, 0.75, -1, 0, 0); //upper left corner
vertex(0.25, 0.75, -1, w, 0); //upper right corner
vertex(0.25, 0.998, -1, w, h); //bottom right corner
vertex(-0.25, 0.998, -1, 0, h); //bottom left corner

//-Z face
vertex(-0.25, 0.75, -1.5, 0, 0); //upper left corner
vertex(0.25, 0.75, -1.5, w, 0); //upper right corner
vertex(0.25, 0.998, -1.5, w, h); //bottom right corner
vertex(-0.25, 0.998, -1.5, 0, h); //bottom left corner

//+X face
vertex(0.25, 0.75, -1.0, 0, 0); //upper left corner
vertex(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 face
vertex(-0.25, 0.75, -1.0, 0, 0); //upper left corner
vertex(-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 face
vertex(-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 face
vertex(-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 • • Dec 29 '21

Steve Jobs Generative Portraits

Post image
2 Upvotes

r/processing • • May 16 '22

I created NFT collection through processing, check it out, mint one if you like it, if you dont wanna mint its fine just drop a like it'll help me. Also you check more images on my twitter. https://twitter.com/indianmacchiato/status/1526300424902283264

Thumbnail
gallery
0 Upvotes

r/processing • • Mar 02 '21

Playing around with perlin noise[Code in the comments]

Post image
9 Upvotes

r/processing • • Dec 15 '15

Brainstorm with me

1 Upvotes

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 • • Jan 22 '19

Is their a way to make a lightsaber appear with code?

1 Upvotes

r/processing • • Feb 23 '16

Getting into Audio Visualization, imagine Eye of The Tiger playing.

Thumbnail
imgur.com
1 Upvotes

r/processing • • Nov 09 '20

THE NOISE IS FAKE! 😆

Post image
1 Upvotes

r/processing • • Jan 20 '21

Hello so I was starting to get back into processing and I decided I would play around generating some art in the Python mode. I get this weird error about arguments not being able to be coerced to float. Any help?

1 Upvotes

Here is the error message

TypeError: rect(): 1st arg can't be coerced to float

And 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 • • Aug 23 '22

Emoji Generating software

1 Upvotes

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!

Emojinator survey

Thanks in advance!


r/processing • • May 11 '21

Random Dots

0 Upvotes

r/processing • • Nov 16 '23

Call For Artists: Showcase your artwork at the world's largest JavaScript & React events.

0 Upvotes

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 • • May 02 '21

I seek help

0 Upvotes

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.