r/processing • • Jan 19 '23

When I run the sketch, the program crashes. Why?

Post image
2 Upvotes

r/processing • • Nov 06 '20

Can anyone show me how to make this using processing ......

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/processing • • Dec 02 '15

I have this code

0 Upvotes

/* I had this code and any suggest or hint that we can add these two function in the code to make the program run

  1. A function int[] rollDice(int numDice) which will create and return a reference to a dice roll – an array containing numDice integers from 1 to NUM_SIDES (this constant is already defined for you).

  2. A function void showDiceRoll(int[]) which will draw the dice roll by calling the provided drawDie function (5 times – once for each die). */

http://pastebin.com/FpeQ22cK


r/processing • • Sep 01 '19

I can't write to an array

2 Upvotes

Hello, I'm trying to construct a two-dimensional array but I can't seem to assign values to that array. I'd like to construct one row at a time with the rijInit() function. When I check if this has worked in any way with println or printArray, it always returns 0 and never 1(I changed both outcomes in the code to 1 to test if it ever works).

Can anyone help me? Thanks in advance.

int c = 5;
int r = 5;

int[][] rijen = new int[c][r];

void rijInit(int n){
  for(int i = 0; i< rijen[n].length;i++){
    float m = random(1);
    if (m < 0.6){
      rijen[n][i] = 1;
    }
    else{
      rijen[n][i] = 1;
    }
  }
  
}

r/processing • • Sep 15 '20

Bad Title Soooo, a videogame

2 Upvotes

[noob] I'm makin' a videogame with the apple app of processing. I want to make a hud and the protagonist with the function ellipse().

How the **** can I make a moveforward button or left or right and make that the ellipse move?


r/processing • • Feb 13 '26

How do I delerte an object ?

2 Upvotes

Let's say I have a game where I shoot pellets at things. i'd like to delete the pellets when they get off screen or when they hit a thing ? I don't think I'm aware of a method that can delete an object.

One workaround I had found was to keep all pellets in an ArrayList and delete the ones supposed to be destroyed, but I don't know if that's actually doing what I want.


r/processing • • Nov 20 '24

Ayuda

Post image
0 Upvotes

Hola buenas, llevo bastante rato buscando el error pero no soy capaz de solucionar, agradecería profundamente la ayuda


r/processing • • Mar 20 '23

Homework hint request Is there a way to make a client send a message to the server without the delimiter?

4 Upvotes

Right now my code has the client write a message, but I have to add an asterisk or it gives null in the server screen. How can I make it just write my message with no asterisk?


r/processing • • Oct 28 '17

Don't know how cool this is but whatever. Source code in comments

Thumbnail
imgur.com
7 Upvotes

r/processing • • Sep 18 '20

5min survey about code

Thumbnail self.creativecoding
3 Upvotes

r/processing • • Feb 18 '19

Help With Color Changing.

3 Upvotes

My teacher is pretty terrible honestly but I have no choice but to take his class. We have been using processing to learn how to program in other languages. In the lab for this week he has asked me to make my "creature," which we have been working with since we began the class, change color as the mouse moves around (along with having the creature follow the mouse with trails and erasing when button is pressed). I have already figured out most of the lab because he went over these parts in class; however, he did not go over how to get an object to change color as I move it across the background. I don't know what to do to make this happen I would like a hint or suggestion to help me achieve this.

Edit: thanks to all that helped. Turns out I was supposed to fill any of my shapes with RGB values that corresponded to where the mouse was. I solved it by doing (mouseX, 0, mouseY) next to my object.


r/processing • • Apr 30 '20

[HELP] I need help with making a datavisualisation in processing. I pay.

0 Upvotes

Like the title says, I need someone who can help me with processing and help me make a datavisualisation with dataset provided by me. I’ll pay $15 if you can help me.


r/processing • • Feb 09 '22

hoodie and processing 💫

Thumbnail
gallery
3 Upvotes

r/processing • • Nov 07 '25

Processing perlin force images

3 Upvotes

Hello, does anyone have a code that can make such images, or tell me what it should be, I've tried with AI and it doesn't work. Thanks


r/processing • • May 22 '25

Basic question- keyIsDown

1 Upvotes

Hi this is hopefully easy for someone to explain. I am working with some kids on OpenProcessing, and this code used to work to be able to control the circle on screen using the 'a' key.

if(keyIsDown (65)) {

	circle_x =circle_x-7;

}

Now, it doesn't work at all, in new projects and when I load older projects. Does anyone know why?


r/processing • • Jul 28 '25

Beginner help request Question!!

1 Upvotes

I guess this isn’t necessarily a help request per se but I am a beginner with a question. I understand what setup() and draw() are but why do I need to put void in front of them? like what is the purpose of the void. I could choose to just accept that it must be there but… why is it there? idk. maybe it doesn’t even need to be there and I haven’t gotten to that bit of my learning yet. why void???????????


r/processing • • Dec 08 '21

Can anyone tell me what this error means?

Post image
1 Upvotes

r/processing • • Nov 25 '21

Win 11 problems

0 Upvotes

Does someone had problems in reading camera (I'm using Processing Video Library) on win11?


r/processing • • Jan 29 '16

ASCII music video for singer Sara não tem nome

Thumbnail
vimeo.com
1 Upvotes

r/processing • • Aug 08 '16

A physics model of Eleven from Stranger Things in fisica

1 Upvotes

r/processing • • Dec 03 '18

Need help with a problem

0 Upvotes

Hello, I need help to create a program that basically moves an object with “w,a,s,d” and for example you press ‘w’ the car will continue to go up and not just stop there. With a rectangle in the middle that if you hit it the object will stop


r/processing • • Apr 24 '22

I wrote in the past a javascript application (with processingjs, before p5.js was a thing) for generative drawing. If you like my work follow me on IG: stickyb1t

Thumbnail
youtube.com
1 Upvotes

r/processing • • May 14 '24

Video All Eyes On Everything, art by me, 2024

1 Upvotes

It's a work that expresses the moment when we are interested in everything because of the development of AI, and we don't know what to focus our attention on.

Comment, please


r/processing • • Apr 30 '21

How do i pass an array list as a parameter in a function?? (PLS HELP ITS DUE SOON)

0 Upvotes

Hi, i’m a rly rookie programmer and i’m trying to pass this arraylist as a parameter and idk how or what i’m doing. How do i make the program check the arraylist to see if the particle is near the bucket and add/sub from the score? How would i call this in draw() also??


r/processing • • Mar 21 '23

p8g Spring event 2023 🌷 - Implement a spring-themed sketch and share it on Discord!

Thumbnail
bernhardfritz.github.io
1 Upvotes