Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [processing]

Open-source programming language and IDE built to teach the fundamentals of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks.

Filter by
Sorted by
Tagged with
1 vote
0 answers
85 views

Merge and autocrop images with Jimp

The following code uses jimp to merge images, located in the ./in folder, with dots.png. Then it autocrops the images. Finally, ...
user avatar
  • 565
3 votes
2 answers
404 views

Multithread reading and processing when working with HDF5 files

I have a program that should read and process about 500,000 files in the format hdf5, each of them containing about 400 data points representing the coordinates of ...
user avatar
  • 133
3 votes
0 answers
43 views

Multiple circle - line crossing performance

So I made a game during the pandemic, and I really enjoyed seeing it grow and learn a ton of stuff and implement it.. The game is about small moving circles that cross a line and when they intersect ...
user avatar
  • 31
1 vote
2 answers
154 views

Simple definite integral calculator

I made this code to compute definite integrals in Processing. It works by getting the rectangle between the maximum value between the previous function value and the current function value, and then I ...
user avatar
6 votes
2 answers
3k views

Improving particle performance in P5.js

I have modified a particle system to create an effect similar to the one that I want. However, with any substantial amount of particles it performs very slowly on my laptop (around 1.7 fps at the ...
user avatar
1 vote
0 answers
873 views

Drawing a chessboard pattern using a nested for loop

I've been messing around with a software called Processing, used for user interactions and a lot of cool things. I programmed a pattern from a Chess set but I'm not sure if it's the best way to ...
user avatar
1 vote
0 answers
80 views

A Processing sketch to generate and draw the Mandelbrot and Julia sets

I have used my limited knowledge of processing and made a sketch to generate the Mandelbrot set and various Julia sets. I've tried to make it efficient as possible. It's also interactive, and ...
user avatar
1 vote
3 answers
968 views

Interactive Mandelbrot Set in Processing

I have created an interactive rendering of the Mandelbrot set in Processing. The image allows zooming (left and right mouse buttons) and translating (arrow keys) and prevents loss of quality by ...
user avatar
2 votes
0 answers
87 views

Display Hex and Color of Web color based on Name

This code is written using the latest version of Processing. This has been compiled and proven working. What this code does: Enter name of the web color listed in Wikipedia in the text field. Or ...
user avatar
3 votes
1 answer
420 views

Lissajous pattern simulator

I had seen a YouTube video making actual Lissajous patterns with sand falling from a pendulum with 2 different periods and looking in the Wikipedia page the looked very easy to simulate. I made a ...
user avatar
  • 27k
1 vote
0 answers
2k views

Pac-Man-ish maze game

I am a freshman in university. This Pac-Man-ish Game is my final Computer science homework. I know my code is not perfect and has so many to be improved. However, Compared to corrections of this game, ...
user avatar
3 votes
1 answer
1k views

"Destroy the Asteroid" Game

I made this game for my computer science class. Here is my professor's requirements: Write a Processing program that draws a triangle in the middle of the window. Rotate the triangle when ...
user avatar
2 votes
1 answer
3k views

Pong game in Processing

I programmed a Pong game in the editor Processing. I would be glad if you could give some improvements. ...
user avatar
  • 21
2 votes
2 answers
169 views

My spaceship is slow to explode after being hit by the asteroid

I am making a game for my computer science class. My professor's requirements are: Write a Processing program that draws a triangle in the middle of the window. Rotate the triangle when the left and ...
user avatar
6 votes
1 answer
3k views

Java snow animation

I was inspired by this to write a graphic snow animation in Java/Processing. It works great, but it has some design issues. The full project is here on github; ...
user avatar
  • 1,670
8 votes
1 answer
1k views

Multi-function clock GUI

I was sitting in my bedroom, looking at my Powers of 2 clock sitting next to my radio, under my analog clock on the wall, and wondered to myself: "Why have all these different clocks when I can have ...
user avatar
  • 387
4 votes
1 answer
1k views

Seven-segment display GUI

I am building a GUI to display a digital clock face (four seven-segment displays), and I have a selector to switch between 12/24-hour formats. I have working code to show both formats, but it is messy....
user avatar
  • 387
5 votes
1 answer
88 views

Clone of "Pop the Lock" iPhone Game

As an exercise, I decided to program my own version of the game Pop the Lock for the iPhone. The look and functionality are essentially the same, though the controls are modified for playing on a ...
user avatar
  • 387
4 votes
1 answer
91 views

Binary/yijing clock in Processing with excessive resource consumption

I've been learning Processing for the last week or two, and I've made a couple of little 'desktop toy' type apps like this one that I'm quite pleased with. However, it just occurred to me today to ...
user avatar
  • 295
2 votes
1 answer
120 views

Processing 2 Sketch

I'm working on a processing sketch here. Main sketch: ...
user avatar
0 votes
1 answer
83 views

New features for Processing game/desk accessory

I have written a simple desk accessory in Proccessing called Trip, you can see it below. It is working, but it is very simple, and needs more features. ...
user avatar
  • 143
1 vote
1 answer
3k views

Organizing classes for Blackjack game

I have to write a Blackjack game for college using the Processing language. It has to be done in a strict object-oriented approach, so I can't make an object of a class in another class unless there ...
user avatar
  • 203
3 votes
1 answer
114 views

Zero crossings from a 1D signal

I'm trying to get the peaks/zero crossings from a basic 1D signal and am not sure if my naive/basic approach is correct: ...
user avatar
3 votes
1 answer
447 views

Ray reflection with a triangle

I'm trying to reflect a ray of a triangle using Processing and not sure I got the code right. I'm using two bits of pseudo code from two locations: Intersection of a Line with a Plane from Paul ...
user avatar
6 votes
2 answers
505 views

Particles moving around a Perlin Noise field

I made this sketch in Processing (basically Java) that consists of a bunch of particles moving around a Perlin Noise field. Each particle is aware of the position of one other particle and this ...
user avatar
  • 163