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
11
votes
3 answers

Calculate Voronoi around polygon

I need to generate a Voronoi diagram around a concave (non-convex) inside polygon. I have looked for methods online, but I haven't been able to figure out how to do this. Basically, I generate the convex hull of the points, calculate the dual points…
Alex
  • 111
  • 1
  • 5
11
votes
2 answers

Depth of Field: combining a point shader with a blur shader (Processing 3)

I would like to display thousands of points on a 3D canvas (in Processing) with a Depth of Field effect. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a point based on its distance from the…
solub
  • 1,291
  • 17
  • 40
11
votes
1 answer

Processing LoadLibrary failed with error 1114

I am running Processing 3.2.4 on Windows 10, and am trying to run a simple 3D program: void setup(){ size(1200, 800, P3D); } void draw(){ } Whenever I try running the program, instead of getting my program window, I am getting a popup with…
DarkHorse
  • 963
  • 1
  • 10
  • 28
11
votes
1 answer

Javascript \x escaping

I've seen a few other programs that have something like this: var string = '\x32\x20\x60\x78\x6e\x7a\x9c\x89'; And I had to try to fiddle with the numbers and letters, to find the text I wanted to display. I'm wondering if there is a function to…
HarryJamesPotter27
  • 181
  • 1
  • 1
  • 11
11
votes
2 answers

Data Visualization beginner: Learn processing, d3.js or other first?

I'm a visual / info designer and data analyst. I am an expert in Illustrator. I want to transition into dynamic data visualization. Preferably I want to utilize my vector files and connect them to a database. Having said that I want to become versed…
art_and_facts
  • 113
  • 1
  • 5
11
votes
1 answer

Enums in Processing 2.0

This question refers to version 1.2.1 and it doesn't compile at a different part so it's not a duplicate. I want to use enums in Processing. I've read they work better in a separate file so I have done that. This code compiles correctly: enum…
PriestVallon
  • 1,519
  • 1
  • 22
  • 44
10
votes
0 answers

OpenGL nested stencils

I want to get nested stencils to work in OpenGL. I call them masks from now on. So the stencil buffer is cleared to all 0's. I make my first mask, the grey area. Now that have to be all 1's in the stencil buffer, and normal drawing is not allowed…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
10
votes
1 answer

Using OpenGL Toon Shader in GLSL

I'm interested in learning how to write toon shaders in OpenGL Shading Language. I found a demo, but haven't been able to get the demo running on my computer. The trouble I'm having is with writing an application which will use this shader. Could…
Ben Anderson
  • 103
  • 1
  • 1
  • 5
10
votes
3 answers

Visualization of the Recaman Sequence

I saw a video about the Recaman Sequence by Numberphile. If you don't know the algorithm you can look at this link: https://www.youtube.com/watch?v=FGC5TdIiT9U or this one:…
Stefan
  • 1,122
  • 3
  • 14
  • 38
10
votes
1 answer

Android - difference between View.OnLayoutChangeListener and ViewTreeObserver.OnGlobalLayoutListener

According to the doc, the first is Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing. and the second is Interface definition for a callback to be invoked when the global layout state…
user2062024
  • 3,541
  • 7
  • 33
  • 44
10
votes
2 answers

How can I run Processing's Python mode in non-Processing IDEs?

The "Python mode for Processing" file Tutorials/overview/index.html states "Advanced programmers need not use the PDE, and may instead choose to use its libraries with the Python environment of choice." Unfortunately, it doesn't say how to do this,…
Andrew
  • 141
  • 7
10
votes
1 answer

Trying to port a GLSL glass shader to Processing 3.0

EDITED I am beginner on Processing language and GLSL shaders. I am trying to port a fresnel+cubemap shader for a glass material. But as result my shape ever disappear, instead... :-( My vertex shader is: const float Air = 1.0; const float Glass =…
Renascienza
  • 1,647
  • 1
  • 13
  • 16
10
votes
4 answers

Random "walk" around a central location in a limited area?

I'm not sure if I can express this question correctly, but here it goes.. I want to code an example, where small dots have a velocity according to which they move - but also, there is a random motion superimposed to the "proper" motion. Using the…
sdaau
  • 36,975
  • 46
  • 198
  • 278
10
votes
4 answers

How to retrieve more than 100 results using Twitter4j

I'm using the Twitter4j library to retrieve tweets, but I'm not getting nearly enough for my purposes. Currently, I'm getting that maximum of 100 from one page. How do I implement maxId and sinceId into the below code in Processing in order to…
hapless_cap
  • 217
  • 1
  • 3
  • 10
10
votes
4 answers

How to debug in Processing Development Environment (PDE), Also is there a plugin to support intellisense

I am new to Processing development environment, I did my homework and all I found is to import processing libraries into Java IDE (eclipse) and use debugging, I am wondering if there is a PDE plugin that can help with intellisense and debugging as…
Swathi
  • 117
  • 1
  • 1
  • 5