r/processing • • Jan 01 '24

Genuary 2024 - Day 1 Particles. Particles are attracted/repelled to stay a constant distance from the (moving) mouse. Similar to the rules for Particle Life. Different colors prefer different distances, hence the 'sorting'. Link to a video tutorial on the code in the comments.

29 Upvotes

r/processing • • Jan 01 '24

Genuary 2024 - Day 01 - particles

24 Upvotes

r/processing • • Jan 02 '24

Genuary 2024 particles, lots of them.

2 Upvotes

learned to make particle system from nature of code book. Let me know where I should go from here.

#genuary #genuary2024 #genuary1


r/processing • • Jan 01 '24

2023 = 36 code-based remakes

17 Upvotes

This year, I used Processing + p5.js to complete 36 code-based remakes of objects from graphic design history in an effort to promote creative coding courses at design schools. See them all (+ more!) on Instagram.

Also, a quick reminder that if you are an educator who teaches creative coding to visual design students, I am happy to give a free online lecture. More info on my site #sharingiscaring


r/processing • • Jan 01 '24

p5js Genuary 2024 - Day 1 - Particles, Connected

11 Upvotes

r/processing • • Jan 01 '24

Auld Lang Syne - Synth Version - Happy New Year!

Thumbnail
youtube.com
1 Upvotes

r/processing • • Dec 31 '23

Genuary 2024: It begins!

16 Upvotes

Genuary is upon us!

https://genuary.art

Might I suggest the first Genuary-related post each day is regarded as the place for everyone to post their Genuary-related bits and bobs? I won't be strictly enforcing this unless the sub-reddit explodes into an unmanageable frenzy of generative art, but in the spirit of self-organising systems, I'm sure we can all keep the place nicely organised and tidy.

Prompts are here, and the 1st of the month is “Particles, lots of them.”—

Dan Shiffman demonstrates a simple particle system…:
https://processing.org/examples/simpleparticlesystem.html

…and a slightly more complicated particle system:
https://processing.org/examples/multipleparticlesystems.html

Fly, my pretties!


r/processing • • Dec 29 '23

Beginner help request Super new to coding. Behold, I have mastered processing!

29 Upvotes

For real though I am new. Any tips or helpful suggestions would be appreciated.


r/processing • • Dec 30 '23

Beginner help request Had anyone ever used this site to help learn code. Looking for something that gives lessons and is either free or cheap.

Post image
2 Upvotes

r/processing • • Dec 29 '23

Beginner help request I am completely lost

3 Upvotes

I am brand new to any type if coding. I am watching a long tutorial on how things work and some things I understand and some I don't. Is this normal? I want to grasp it and retain the information but it's a ton of information.


r/processing • • Dec 28 '23

Includes example code Random Mandalas & Fractals I designed with processing Through the Year :)

Thumbnail
gallery
19 Upvotes

r/processing • • Dec 28 '23

O Christmas Tree Synth Version

Thumbnail
youtube.com
3 Upvotes

r/processing • • Dec 27 '23

My first ever line of code! It's Gir!

Post image
28 Upvotes

It's not much but it's a start!


r/processing • • Dec 27 '23

Beginner help request How do I shuffle the contents of an ArrayList?

3 Upvotes

The ArrayList contains instances of a class, so no switching to IntArray and using its shuffle method :( I know Java has Collections.shuffle(), but that doesn't work for me in processing. Any help is greatly appreciated


r/processing • • Dec 26 '23

I have released my Processing game on itch.io and gamejolt.com (desktop version). Free demo version is available on both platforms

15 Upvotes

Link to gamejolt.com (only demo version) and to itch.io (full game and demo version are here)


r/processing • • Dec 25 '23

simple motion shape p5.js v2

20 Upvotes

r/processing • • Dec 25 '23

Includes example code Merry Christmas to the Processing Community!

22 Upvotes

r/processing • • Dec 19 '23

Implementing Collision

1 Upvotes

Hi guys, I currently have a script of code and I've been attempting to implement collision, I've tried to use some code but it keeps saying one of my variables doesnt exist. Could use some help on this please :)

class Ball {

float x;

float y;

float speed;

float w;

int id;

Ball(float tempX, float tempY, float tempW) {

x = tempX;

y = tempY;

w = tempW;

speed = 0;

}

void gravity() {

// Add gravity to speed

speed = speed + gravity;

}

void move() {

// Add speed to y location

y = y + speed;

// If square reaches the bottom

// Reverse speed

if (y > height) {

speed = speed * -0.95;

y = height;

}

}

void checkBoundaryCollision() {

if (x > width-w) {

x = width-w;

speed x = -1;

}

else if (x < w) {

x = w;

speed x = -1;

}

else if (y > height-w) {

y = height-w;

speed y = -1;

}

else if (y < w) {

y = w;

speed y = -1;

}

}


r/processing • • Dec 19 '23

Beginner help request Need help with shapes

1 Upvotes

I have 2 rotating shapes but the triangle seems to 'cut into' the square. Can anyone tell me how to stop this from happening?Here is my code:

float x;

float y;

float angle = 1;

void setup() {

size(800, 800, P3D);

}

void draw() {

background(0);

float wave = sin(radians(frameCount));

//SQUARE

push();

fill(0);

stroke(255);

strokeWeight(2);

translate(width/2, height/2);

rectMode(CENTER);

rotateX(radians(angle));

rotateZ(radians(angle));

rect(0 + wave, 0 + wave, 500, 500);

pop();

//TRIANGLE

fill(255);

stroke(255);

strokeWeight(2);

rectMode(CENTER);

translate(width/2, height/2);

//rotateX(radians(angle));

rotateY(radians(angle));

//rotateZ(radians(angle));

triangle(0, -300, -300, 200, 300, 200);

angle += 1;

}


r/processing • • Dec 19 '23

Have a problem to make (about ARRAY)

1 Upvotes

Hi there I have some problem to complete my code.

But something mysterious is I have an experience that I completed to my code.

Just wanted that I made it in June

After six months, there was no change. Except my code does not work.

Hope you gave me some solution to me.

I think the mainly problem is Processing cannot lead my file, I already have a library, there is no problem I think...

import processing.video.*;

Movie myMovie;

int blocks = 20; // blocks

float mov_pointer = 0.0;

float inc = 0.0;

int i = 0;

float mov_dur = 0.0;

void setup() {

size(1920, 1080);

myMovie = new Movie(this, "me.mp4");

myMovie.loop();

mov_dur = myMovie.duration();

inc = mov_dur/(blocks*blocks); // 20by20 tiles

println(mov_dur);

myMovie.pause();

}

void draw() {

if (mov_pointer>mov_dur) { // it ends when movie ends

print("\n The End");

save("visualization.jpg");

myMovie.stop();

noLoop();

}

myMovie.play();

myMovie.jump(mov_pointer);

if (myMovie.available()) {

myMovie.read();

i++;

image(myMovie, (i%blocks)*(width/blocks), (i/blocks)*(height/blocks), width/blocks, height/blocks);

mov_pointer=mov_pointer+inc;

} // simply divide screen into 200by200 = 40000 tiles and put each frame into each tile

myMovie.pause();

}


r/processing • • Dec 19 '23

Trying to recreate this process

0 Upvotes

Hi I came across this portrait years ago by this person, Jeff Clark, he did of Obama. He referenced processing. He made a tool built with processing, and he augmented it to generate a desired out come. I wanted to see, does anyone know how or have any example scripts how he did this?

I want to do something similar with my own source images and text, as well as potentially re-create this in a 3D app like Cinema 4D or Blender. I've seeing circle packing, but that's not quite close to what this guy did. The packing that's going on with the texts is really nice, and it looks like he's using gray levels to drive the scale of the type too.

Any ideas?


r/processing • • Dec 18 '23

Includes example code More Moving Mandala Stuff :) (Got inspired by some winter daytime colors!)

24 Upvotes

r/processing • • Dec 17 '23

Help request Texture problems

Post image
5 Upvotes

r/processing • • Dec 17 '23

Processing certificate expired while trying to access site

1 Upvotes

Anyone shed some light on whats going on with processing.org right now?


r/processing • • Dec 17 '23

Improving my code with collision

0 Upvotes

I have a class called ball in another script but I was wanting to create it so that the balls collided, and kind of bounced off each other. If anyone could help improve my code that'd really assist me!

Ball[] balls = new Ball[1]; // We start with an array with just one element.

float gravity = 0.1;

void setup() {

size(480, 270);

// Initialize ball index 0

balls[0] = new Ball(50, 0, 24);

}

void draw() {

background(255);

// Whatever the length of that array,

// update and display all of the objects.

for (int i = 0; i < balls.length; i++ ) {

balls[i].gravity();

balls[i].move();

balls[i].display();

}

}

void keyPressed(){

if(key=='1'){

// A new ball object

Ball b = new Ball(random(480), random(270), 24); // Make a new object at random.

balls = (Ball[]) append(balls, b);

}

}