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
6
votes
4 answers

Canny Edge Detection using Processing

I am looking for a copy paste implementation of Canny Edge Detection in the processing language. I have zero idea about Image processing and very little clue about Processing, though I understand java pretty well. Can some processing expert tell me…
Rewolverine
  • 375
  • 1
  • 3
  • 8
6
votes
1 answer

How to calculate intersection point of a line on a circle using p5.js

I have a line (se) that I know starts inside a circle, and I know ends outside of a circle. I'm trying to find a point l where the line crosses the circle. I'm using the p5.js library and have access to all of its Vector functions. My thoughts…
Djave
  • 8,595
  • 8
  • 70
  • 124
6
votes
1 answer

Picking up food object in radius

I'm making a Genetic Algorithm for a school project. Currently I'm building the foundation for the "dot" objects that move around and pick up food. I wrote some code that I thought should be able to do that and after some trial and error I came up…
6
votes
1 answer

How to setup a Jupyter-notebook with calysto-processing to run in Binder?

I have jupyter-notebook running on my own Mac with the caylsto-processing library plugged in so I can run processing scripts in a notebook in a browser tab. But I am trying to be able to run this all in binder, so that I can share my processing…
6
votes
5 answers

Java Processing 3 PAplet in JavaFX scene as FXNode

I am trying to make a program for visual analyzing Fractal sets. I choose Processing 3 as drawing library and JavaFX for the user interface. There are some screenshots of the current state: My GUI: there is Launcher code: import…
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
6
votes
3 answers

Firebase Javascript + P5.js: Asynchronous function getting in the way of redrawing the canvas

I'm trying to create an application where circles are drawn onto the canvas through reading information from a Firebase database that stores the x and y coordinates of the circles. Executing the code below however, simply produces nothing, without…
Adam Lee
  • 436
  • 1
  • 14
  • 49
6
votes
1 answer

Texture on sphere not aligned correctly? Lat/Lon -> Cartesian xyz

I'm wondering if the texture to my sphere is somehow not being applied correctly, and if I can offset it somehow? I am trying to place a box at Sydney, Australia by supplying the lat/lon and converting to cartesian xyz coordinates. However, the…
Blake S.
  • 401
  • 1
  • 4
  • 10
6
votes
1 answer

How to animate a window with Processing?

I am using Processing to learn programming and wondered if there is a way to make an OS window grow, shrink, make it transparent or give it round edges. As far as I know Processing uses Java's Frame class and not the JFrame class, but I just can't…
rln
6
votes
2 answers

Where are Processing libraries installed when added from the Sketch menu?

When I add a library in Processing (Sketch > Import Library > Add Library), where is it installed?
ThisClark
  • 14,352
  • 10
  • 69
  • 100
6
votes
1 answer

How to make a sliding member in Processing with particle systems

I am simulating particle system in Processing. Based on Daniel Shiffman’s Nature of Code book, I did a spring and then I started experimenting with sliders to do one that has longer or shorter length based on a slider. Now, I am trying to make one…
Apollon1954
  • 1,388
  • 4
  • 16
  • 33
6
votes
1 answer

expecting EOF, found ''

My 1st post here so I'll try to keep it simple. I'm trying to create a plot of some mass spectrometry data using Processing. I wanted to write a sketch to parse data from pseudo-XML into tables and then to plot this data as points on 2 axes (time,…
Ninja Chris
  • 324
  • 1
  • 3
  • 12
6
votes
0 answers

Integrating a Processing Sketch (PApplet) with javaFX GUI (From GUI Builder 2.0)

I have been experimenting with integrating a PApplet with a JavaFX GUI designed in the GUI builder (2.0). After creating a SwingNode and adding my sketch instance to it, it fails to update its frame after drawing once. I have minimal experience with…
6
votes
2 answers

Detecting HeartBeat Using WebCam?

I am trying to create an application which can detect heartbeat using your computer webcam. I am working on the code since 2 weeks and developed this code and here I got so far How does it works? Illustrated below ... Detecting face using…
B L Λ C K
  • 600
  • 1
  • 8
  • 24
6
votes
2 answers

Generating knots procedurally (and visualizing them)

I'm looking for an algorithm that provides a way to generate graphical representations of knots (either 2D or 3D, but the former, with vector graphics is preferable). I've seen many links to knot theory in general, spanning from punctual references…
rano
  • 5,616
  • 4
  • 40
  • 66
6
votes
3 answers

Send Data From Arduino to Android App via Bluetooth

Hello i can send data from android to arduino but i cant send data from arduino to android via Bluetooth on procesing i dont get any Error but I cant see anything on display of android app.. i used for blueToothSerial.print(XXX); for arduino side ..…
Burak
  • 97
  • 1
  • 2
  • 4