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
394 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, ...
janoChen's user avatar
  • 565
3 votes
2 answers
684 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 ...
John K's user avatar
  • 133
3 votes
0 answers
52 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 ...
dedepe's user avatar
  • 31
1 vote
2 answers
274 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 ...
Simple coder's 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 ...
Zach Saucier's user avatar
1 vote
0 answers
1k 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 ...
Alex Dalton's user avatar
1 vote
3 answers
1k 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 ...
Light Drake's user avatar
2 votes
0 answers
88 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 ...
Masoud Nazemi's user avatar
3 votes
1 answer
480 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 ...
Caridorc's user avatar
  • 27.4k
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, ...
Ping Lin's 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 ...
Ping Lin's user avatar
2 votes
1 answer
4k views

Pong game in Processing

I programmed a Pong game in the editor Processing. I would be glad if you could give some improvements. ...
panden's user avatar
  • 21
2 votes
2 answers
176 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 ...
Ping Lin's user avatar
6 votes
1 answer
4k 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; ...
J Atkin's user avatar
  • 1,790
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 ...
Eric Roch's 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....
Eric Roch's user avatar
  • 387
5 votes
1 answer
94 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 ...
Eric Roch's user avatar
  • 387
4 votes
1 answer
99 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 ...
Toadfish's user avatar
  • 295
2 votes
1 answer
127 views

Processing 2 Sketch

I'm working on a processing sketch here. Main sketch: ...
David Cool's user avatar
0 votes
1 answer
88 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. ...
felixphew's 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 ...
eMRe's user avatar
  • 203
3 votes
1 answer
121 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: ...
George Profenza's user avatar
3 votes
1 answer
475 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 ...
George Profenza's user avatar
6 votes
2 answers
523 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 ...
Mike's user avatar
  • 163