Questions tagged [processing]

Processing is an open source programming language and environment for people who want to create images, animations, interactions, and games.

The processing tag is misleading and leads to misunderstandings and even closure votes, because of the seemingly missing language tag. It is strongly recommended to tag questions additionally with a language tag.

But note Processing is not the same as Java.

Processing refers to the language built on top of Java and the minimal IDE it ships with. It is free and open-source, runs on Linux, Mac OS X, and Windows, and can output for screens, print, 3D packages and CNC printing.

The language simplifies a lot of complex concepts and eases the entry of designers, artists and non-programmers to the world of programming.

Over the years it was used to produce a number of astonishing projects ranging from data visualization, to physical computing , games, 3D, sound, live performance, and more.

Due to its vibrant community, Processing not only enjoys a contribution of over 100 libraries, but it is also present on major mobile platforms, such as Android and iOS.

There are online communities for sharing Processing content, like OpenProcessing.

Some websites even allow users to learn and use Processing directly in the browser, like the Flash-driven SketchPatch and the JavaScript-driven Sketchpad and p5.js (pure JavaScript).

There are also Processing ports to the following languages:

Advanced users are not constrained to the Processing IDE; sketches can be run from the command line, and projects can be set up to build and run directly from editors:

6836 questions
7
votes
1 answer

Exporting a gif from a Processing sketch w/ Gif-animation library

I'd like to export one of my Processing sketches into gif form, and am using extrapixel's Gif-animation library (http://extrapixel.github.io/gif-animation/) to do so. I am able to export the correct number of frames, but they all appear to be…
Matt Voda
  • 131
  • 1
  • 2
  • 9
7
votes
2 answers

How can the arguments to bash script be copied for separate processing?

There is an existing bash script I need to modify, but I want to encapsulate the changes required to it in a function without affect how it manipulates the '$@' variable. My idea is to copy the argument string to a new variable and extract the…
vfclists
  • 19,193
  • 21
  • 73
  • 92
7
votes
4 answers

Use processing in Java application

I downloaded processing from http://processing.org. How is it possible to use porcessing in my Java application. I want drawing stuff depending on the logic in my Java application. To avoid the drawing in Java I want to use processing instead.
DenicioCode
  • 8,668
  • 4
  • 18
  • 33
7
votes
1 answer

3D SVG animation in Processing—flickering problems, svg loading questions

I'm trying to make a time lapse geographic twitter visualization inspired by Jer Thorp's "Just Landed". I am using the latest version of processing. I'm using an SVG image for my map because I want to be able to zoom into the map at an arbitrary…
7
votes
3 answers

Finding nearest free position for a circle for any point [x,y] in a 2D space with circles

I am making a game in which the user player places circles on the screen. It is important that the circles never overlap, so I need to figure out the nearest possible free spot from the cursor. I have found circle packing algorithms, but they do not…
Walmink
  • 167
  • 9
7
votes
5 answers

Best dynamic languages for OpenGL/general graphics

Which are the most mature and well supported solutions for writing graphical programs? I have been using C++ with OpenGL/GLUT, but would like to try a more flexible and expressive approach. Ruby and Processing? Python and OGRE? What things have…
Internet man
  • 1,115
  • 3
  • 13
  • 21
7
votes
1 answer

Is there a way to have multiple layers in Processing?

Is there a way to have multiple layers in Processing ? Each layer would have its own setup/draw context.
gluon
  • 662
  • 1
  • 10
  • 18
7
votes
4 answers

How to run Processing applications from the terminal

I'm currently using Processing for a small project, however I'm not liking the text-editor that comes with it. I use vim to write all of my code. I've found where the .pde file are and I've been editing them from vim and then I'm reopening them and…
george
  • 565
  • 1
  • 5
  • 16
7
votes
1 answer

Theoretically knowing how powerful a micro controller you need, to run your program?

With the vast array of micro controllers out there and even different levels of arduinos providing more power than the last, is there a mathematical way or some way of knowing how much processing power you need, just by analysis, to run your program…
binarysmacker
  • 982
  • 2
  • 9
  • 20
6
votes
1 answer

Harmonics count in a music sample

To determine the richness of a sound, I would like to determine the number of harmonics in a sample of music. For that, I'm using Processing with the Minim library which gives me a full spectrum with a FFT. I'm wondering how to count all the peaks…
LaurentC
  • 87
  • 1
  • 5
6
votes
1 answer

Why is the floor in my raycaster seemingly "misaligned"?

I have been working on a doom/wolfenstein style raycaster for a while now. I implemented the "floor raycasting" to the best of my ability, roughly following a well known raycaster tutorial. It almost works, but the floor tiles seem slightly bigger…
6
votes
1 answer

Weird dot in middle of Processing Kinect (v2) image

I am trying to adapt Daniel Shiffman's code for a basic Kinect (v2) depth cloud using Processing, but there is always a pixel right in the middle of the screen that won't go anywhere, which is pretty annoying. This is an example of what I mean. You…
guskenny83
  • 1,321
  • 14
  • 27
6
votes
1 answer

Is there a way to space correctly a string of text in p5.js?

I saw many times really cool examples of kinetic typography. In these examples every letter is a particle. The text is a particle system and it may be subject to various forces such gravity or even centrifugal force. These systems are made in…
6
votes
2 answers

How can you write an algorithm to properly fill a circle using lines from the center?

Currently I try to write code for calculating the parts of the screen you can see and those who can't because of objects that block light in 2d, like in Among Us: The code should run on a processor with very low specs (at least in 2020), the C64.…
user14699696
6
votes
1 answer

Is there any available Processing program profiler?

My project is coded in Processing, is there available profiler for Processing? If not, how to test the performance of Processing program? Thanks and Best Regards
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83