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
1
vote
2 answers

I need some help understanding arrays of pixels

I'm using Processing to divide a large image into a series of smaller, rectangular nodes. Processing stores the color value for the pixels of a PImage in a pixels array, which I am accessing to break up the image into smaller parts. For some…
Mike
  • 963
  • 4
  • 16
  • 38
1
vote
1 answer

Can I use the Android-Facebook SDK in Processing?

I have an Android sketch in Processing and i was asked to integrate facebook photo uploading to it, the thing is that i have very little time to make this change, so I can't recreate the app in Eclipse. Has anyone ever integrated the…
Samssonart
  • 3,443
  • 3
  • 31
  • 41
1
vote
0 answers

getLocation returns null, what am I missing?

I am trying to get processing to show me the location of the twitter user by using getLocation() but all I get is null. I suspect that I need to add something but do not know what. I am using processing, a java platform and the Twitter4J library.
user47
  • 53
  • 7
1
vote
1 answer

Get location information from twitter using processing

I'm trying to write a program in processing that can get a location from the user who is using Twitter. In every twitter profile there is information where they live like "New York, NY". I figuered out that I will need to use Twitter4J to do this,…
user47
  • 53
  • 7
1
vote
1 answer

Animate camera along multiple bezier paths in AS3 / Processing / D3?

I have a network graph visualization generated using Gephi containing many nodes and edges. I need to produce an animation of a camera (or moving movieclip) to "flythrough" the network along the path of the bezier curves, visiting each (not…
Edan
  • 593
  • 1
  • 8
  • 23
1
vote
3 answers

migrating from processing to processing.js

I am having troubles while migrating my processing code to processing.js. My processing code contains jars, images, fonts in data folder, I want to use same pde files that i have created in processing while migrating to processing.js. Processing.js…
vaishali33
  • 117
  • 7
1
vote
3 answers

Simple 3D graphics in Scala

I am developing a spatial data structure, and I am looking for a quick and easy way to visualize it for the 3D case. I am familiar with Java2D, but not Java3D or OpenGL. Which library would you recommend for this? I mainly need to draw 3-dimensional…
0__
  • 66,707
  • 21
  • 171
  • 266
1
vote
0 answers

Processing sketch: merge alpha channel video with another movie

I have a Processing sketch. I need to overlay a .mov video with alpha channel transparency with another video. The rest of the code works but i got error when the overlay should be started. I'm afraid the error is in the PImage, or in the all code…
mrblade
  • 11
  • 2
1
vote
1 answer

I'm having difficulty exporting my Processing code into an APK

So, I'm using the Processing IDE to develop an android app. I'm not publishing it to the play store, I just plan on installing it onto my phone and possibly a friend's phone if they ask for it. I expect the end result to be some file called…
Math Machine
  • 123
  • 6
1
vote
1 answer

Processing Python vs Java

I tried to make a simple program in Processing Python, it's an ellipse that moves from the center of the screen towards right. The X value of its center increments and that's how it moves. It did not work the way I thought it would, I see only the…
Serge
  • 31
  • 2
1
vote
1 answer

Threading going wrong in Processing with the mouseClicked() function

In my Processing application, I listen for mouse clicks and then handle them in a button class. The button class then sets the right content via calling setScreenIndex. The function detects if this is the first time loading the screen, and then sets…
1
vote
1 answer

Processing window tilted

So i made this simple 2D game in processing and problem is that when i run it whole game is tilted to left a little so it have empty space on right and is cropped on left. Is there any way to fix this? This is code: int red = 20; int kolona = 20; …
St3fKe
  • 21
  • 3
1
vote
1 answer

Text displayed twice in p5.js

When I try to add text to p5.js canvas, it got displayed twice for some reason. Attached code below: let img; function setup() { createCanvas(screen.availWidth, screen.availHeight); img =…
boyuan12
  • 13
  • 2
1
vote
1 answer

Cannot draw rectangle in p5.Graphics buffer

This is the error I am getting: TypeError: Cannot read properties of undefined (reading 'grid') at undefined:56173:43 p5.js says: An error with message "Cannot read properties of undefined (reading 'grid')" occured inside the p5js library when rect…
thing1
  • 31
  • 4
1
vote
1 answer

How deal between primitive type and class of same family, in diamond context?

I wrote this code T [] reverse(T [] arr) { for(int i = 0 ; i < arr.length / 2; i++) { T buf = arr[i]; arr[i] = arr[arr.length - i - 1]; arr[arr.length - i - 1] = buf; } return arr; } But when I pass an array with primitive…
Knupel
  • 323
  • 2
  • 14