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
10
votes
1 answer

How to export an Eclipse Project with External Jar dependencies?

In Processing, I'd like to import a library I've written in Java which wraps around an external library (a .jar file). Processing appears to import my own library, but when I call the constructor (which references some classes in the external…
funseiki
  • 9,167
  • 9
  • 36
  • 59
10
votes
1 answer

Unable to sync computer time to Arduino via USB

I want to sync the Time from my pc to the arduino. I am using their Time library but it does not work. How can I get the arduino to have the same time as on my computer ? I am currently using a mac. Their documentations says : On a unix system,…
Conrad C
  • 746
  • 1
  • 11
  • 32
10
votes
1 answer

build.xml gives errors when compiling a Processing sketch which includes ArduinoAdkUsb

Software involved: * Latest Android SDK (as of today - 8/29/2012) with all of the latest APIs, Tools, Extras, etc downloaded. * Processing 2.0a8 (latest build) * Arduino ADK libraries for Processing ("ArduinoADK-beta-001" folder) * My system: 64-bit…
tomosius
  • 1,369
  • 12
  • 18
10
votes
3 answers

How can I access the Kinect using Java?

I am currently in a Computer Vision course and for my final project I am going to make a small game that interacts with the Kinect. Now I want to make this game in Java as I have never really ventured into making a game before and I am very…
Alex
  • 2,405
  • 4
  • 23
  • 36
9
votes
1 answer

How to add a bounce compression animation to a ball in P5?

my simple game created with P5.js consists in a ball that falls affected by a gravity force and bounces on the ground. I would like to add a "compression" animation to the ball when it touches the ground so that it should look more realistic. How…
Sad Hyena
  • 291
  • 3
  • 16
9
votes
3 answers

Using p5.sound.js in instance mode: 'p5.Amplitude() not a constructor'

I am using an npm, webpack, babel environment to write an application with p5.js. To be able to have the sketch as a module, I have the sketch in instance mode and import the library and add-ons as modules: import p5 from 'p5'; import…
9
votes
1 answer

Adding processing 3 to a Jpanel

I am trying to show a processing 3 sketch inside a Jpanel from a swing application window. (I am using eclipse) please help! I need the complexity and features of a swing based GUI and also want the user friendliness of processing to create visual…
Luma
  • 109
  • 1
  • 4
9
votes
2 answers

Arduino Processing client fails to upload file to PHP server

Background I want pressure sensors (they are working) to trigger the built-in camera and take a picture when cat goes to bed, upload the pic and email me so I can go check out the real-time image on web-site. PHP Server I have a php server running…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
9
votes
3 answers

Stereo Vision with Minoru 3d Webcam in Processing and OpenCV

I recently purchased a Minoru 3d Webcam (http://www.minoru3d.com/) in the hopes of using it to do stereo vision in OpenCV. I thought I had done the proper research before ordering it verifying that it would work, but all of those resources are a…
Adam Dally
  • 405
  • 3
  • 15
9
votes
2 answers

How to convert pixels to gray scale?

Ok, I am using Processing which allows me to access pixels of any image as int[]. What I now want to do is to convert the image to gray-scale. Each pixel has a structure as shown below: ...........PIXEL............ [red | green | blue |…
An SO User
  • 24,612
  • 35
  • 133
  • 221
9
votes
1 answer

Create a simple countdown in processing

I have searched up so many sites on Google to try and get this to work but NO ONE seems to have this anywhere , and if they do it's just NOT working with my program... What I am trying to achieve is to have a player recoil that when the player gets…
D34thSt4lker
  • 447
  • 1
  • 5
  • 12
8
votes
1 answer

Points on a Quadratic Curve using Processing (p5.js)

I am using this formula to calculate the points on a quadratic curve: cPx2 = (1-t)*(1-t)* x1+2 * (1-t)*t*qcX + t*t*x2; cPy2 = (1-t)*(1-t)* y1+2 * (1-t)*t*qcY + t*t*y2; When I set t = 10 and iterate through the curves, I get this: It looks like…
glaemart
  • 129
  • 1
  • 10
8
votes
1 answer

How can I fill a shape with a gradient on p5.js?

First, I do know how to make gradients when it's formed within a square shape as its' a default shape when making manual gradients with for loops and lerpColor. I am trying to create ideally any shape, in this case an ellipse that will have a linear…
wardrobefanatic
  • 101
  • 1
  • 3
8
votes
3 answers

Can GLSL output to two/multiple textures at the same time?

I can get a shader to read in two textures but for output it seems there is only gl_FragColor. Is there any way to render to two different textures from one shader? I am using Processing and the GLGraphics library btw.
Moss
  • 3,695
  • 6
  • 40
  • 60
8
votes
0 answers

How to detect multiple faces using opencv in order to generate an output of flickering LED lights

I am fairly new at using processing and OpenCV, so please bear with me. I have posted my question on both StackOverflow and on the processing forum to reach a wider audience and find a solution -- so apologies if this looks as if I am carelessly…
Gaby Rock
  • 81
  • 3