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

How to get byte[] from javafx imageView?

How do i get byte[] from javafx image/imageview class? I want to store my image as a Blob into my database.This is the method that i use for it public PreparedStatement prepareQuery(HSQLDBConnector connector) { try { Blob…
Tomas Bisciak
  • 2,801
  • 5
  • 33
  • 57
15
votes
3 answers

How does the map() function in Processing work?

I'm taking a class which uses Processing. I having a problem understanding the map() function. According to it's documentation(http://www.processing.org/reference/map_.html): Re-maps a number from one range to another. In the first example above,…
osse
  • 1,533
  • 5
  • 18
  • 25
14
votes
2 answers

Processing 'It looks like you're mixing "active" and "static" modes.'

Processing keeps giving me this error when I run it even though it is just a print command. When I delete the comment block it works fine. Here's the code: /* float[] cortToPolar(int xcorr, int ycorr) { float returns[] = new float[2]; …
Nate711
  • 141
  • 1
  • 1
  • 4
14
votes
2 answers

Programming Challenge: Easiest way to code this grid?

Made It! Look at bottom of the post!!! Smart people of the world... I'm trying to draw this grid using Processing (java), but I'm having trouble figuring out the smartest way around this. I could basically just plot each point in the repeating…
Ronze
  • 1,544
  • 2
  • 18
  • 33
13
votes
4 answers

How to make a SublimeText 2 shortcut to Run Processing sketches on Mac?

I'm using SublimeText 2 to code my Processing sketches, but every time I need to run the program I have to switch to Processing and click the Run button, Textmate have a bundle to automate this process and I would like to do the same with…
Ricardo Sanchez
  • 4,935
  • 11
  • 56
  • 86
13
votes
1 answer

draggable backgroun

I want to achieve something like an infinite drag like the one in Konva js Can anyone help me with this. I try varius things but non of them were ok. Im new in p5js and javascript. Please for any hints. Only this element prevents me from completing…
Michael
  • 168
  • 2
  • 18
13
votes
3 answers

Exporting a video in p5.js

I am creating a simple animation program in p5.js. When a user clicks the save button, I want to download a video of the animation. I have an object called frames where each key is labelled frame_1, frame_2 and so on. The value associated with each…
Siunami
  • 417
  • 2
  • 6
  • 13
13
votes
7 answers

What is the "Processing" Programming language used for?

The language site: http://processing.org/ What are people using Processing for? I have the opportunity to learn this in a classroom setting and am wondering if it will be a good use of my time.
ahplummer
  • 155
  • 1
  • 1
  • 6
13
votes
6 answers

Java equivalent of #ifdef that allows non-compilable code

Is it possible in Java to do a sort of #ifdef thing, like in C/C++? Example: class Test { public static final boolean ANDROID = false; public Test() { if (ANDROID) { // do stuff that won't compile if not on…
Jashaszun
  • 9,207
  • 3
  • 29
  • 57
12
votes
2 answers

Changing the coordinate system in P5.js

As you know P5 coordinate system doesn't start from the middle of the canvas plus the y axis is flipped My question is how to change the coordinates of p5 so it became the same as the Cartesian coordinate system
steve
  • 311
  • 3
  • 10
12
votes
3 answers

How do you get p5.js into a website?

I have searched nearly all over the internet, and i've gotten pretty close to an answer, but I still can't figure out how to use p5.js in a website. To be more specific, i want to be able to perhaps create a weebly, and have it display p5 code. i…
ei1
  • 301
  • 3
  • 4
  • 10
12
votes
2 answers

Setting heap size in IntelliJ IDEA correctly

I have this peculiar problem with running a Processing application in IntelliJ IDEA. I want to save a large image and to do this I run in to the following exception: Exception in thread "Animation Thread" java.lang.OutOfMemoryError: Java heap…
12
votes
1 answer

how to extrude a path in 3d?

I'm trying to extrude a path in 3d. Nothing fancy yet, just following some points and using a regular polygon for 'tubing'. I'm using Processing for now to quickly prototype, but will later turn the code into OpenGL. My problem is rotating the…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
12
votes
2 answers

How to use the Processing core library with Maven?

I want to use Processing libs in my Maven project, but I can't find any artifact for dependency. Where can I get it?
PhilippeVienne
  • 550
  • 8
  • 19
12
votes
5 answers

How can I export a Processing sketch as a video?

I'm creating a 3D visualisation in Processing. I'm anticipating that each frame will take longer to draw than is acceptable for displaying the animation as a program, so I'd like to export it as a video. Is this possible? What's the best way of…
alnorth29
  • 3,525
  • 2
  • 34
  • 50