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

I want to move a square in a circular motion in java processing

This is a school project so i cannot use a lot of functions like translate or rotate. I have to use basic trigonometry to do this. So I have made a square and I need it to move in a circular motion 360 degrees with one of it's point constant and not…
Mazino
  • 11
  • 1
1
vote
0 answers

Finding all active JOGL (Java OpenGL) windows

I'm currently trying to develop a class for Processing library developers that is supposed to allow them to access the PApplet generated by Processing. I already asked this question on the Processing with no one being able to provide a real…
1
vote
1 answer

GSON library not found when importing into processing java

I'm trying to import the GSON library into my processing java sketch. The editor I'm using is VS Code. I'm fairly new to how libraries work in Java, so I followed what many sites said. Here's what I did. First, I downloaded the GSON .jar file from…
Scollier
  • 575
  • 6
  • 19
1
vote
1 answer

Triggering infinite animated objects

I would like to display, in Processing, one photo fading up and fading down over 15 seconds, with a second photo doing the same one second later, and another, etc, ad infinitum. This example displays 15 objects, but they all start together: PImage[]…
user2449986
  • 77
  • 1
  • 10
1
vote
1 answer

Processing: Pick a random color from array

I'm trying to pick a random color for strokeline from an array list. From the program, it indicates that random() expect parameter like random(float). But I feel a bit stuck of how to correct it. Below is my code: int n = 200; drop[] d; color[]…
Liz
  • 31
  • 3
1
vote
1 answer

Processing sketch won't load in browser

I'm trying to add this processing program to my HTML file, I did it with two other programs and had no problems so far. This code works perfectly on the Processing editor, but won't load in my website. I tried converting everything to p5.js already…
zell wd
  • 49
  • 6
1
vote
1 answer

How to pick a random string from an array on mouse press in Processing

I want to do the following in Processing: Display text on the screen When mouse is not pressed, always display the first string in the array When mouse is pressed, choose a random string from the array and have this string persist until the mouse…
seeker
  • 13
  • 2
1
vote
1 answer

Box2d objects overlapping issue

Sorry for my bad English, it is not my first language. I am making a simulation with processing, using pbox2d library(it is almost same with normal box2d). It does work, but I noticed that objects are overlapping to each others. I tried to fix it by…
김혁기
  • 11
  • 1
1
vote
1 answer

How would I set the window size to windowed fullscreen?

How do I set the window size to "windowed fullscreen"? The best I can do is: surface.setLocation(0, 0); surface.setSize(displayWidth, displayHeight); however it doesn't fit because of the taskbar and setLocation(0, 0) doesn't set the position to…
turke1034
  • 68
  • 1
  • 7
1
vote
2 answers

How to translate this Processing code to p5.js?

A few years ago, I programmed this with Processing: import processing.pdf.*; drawing w; void setup() { size(1080, 720); beginRecord(PDF, "drawing.pdf"); w = new drawing(); background(0); } void draw() { w.step(); w.render(); } class…
Anna_B
  • 820
  • 1
  • 4
  • 23
1
vote
1 answer

Flip image Y axis on p5js

I need to flip a image over the Y axis in P5js I'm aware that for the flip over the X axis the following code works push(); scale(-1, 1) image(pg,-width/2,0, width/2, height); pop(); But I can't found the way to do it over the Y axis.
user1843376
  • 535
  • 2
  • 7
  • 12
1
vote
1 answer

Why are my keypresses in processing (java) getting a static/active mode mixing error?

I'm using processing (java) and I'm trying to use an array called input to easily handle keypresses. Here's my code for that: boolean input[] = {}; void keyPressed() { input[keyCode] = true; } void keyReleased() { input[keyCode] =…
Scollier
  • 575
  • 6
  • 19
1
vote
1 answer

Snapping Value Bar

I am working on my university project and came across an issue. I am creating a slider in Processing that changes value to 0-100. And I want to it to snap into values of 10 (10,20,30...) using the button I created. Here's how it looks: I am sorry…
user19171705
1
vote
1 answer

How to find point on the circumference of a circle from an angle

position holds the center of a circle with a diameter variable. enemy.position is the top left corner of a square which is an enemy, size is the width and height of the enemy. I am using pVector and line() from the processing.core.pApplet library in…
MossDog
  • 53
  • 6
1
vote
2 answers

Creating sliders with arrow buttons

How can I create a slider with two arrow buttons from the side? The arrows/triangle should turn white when clicked. And the slider should move each time the arrow button is clicked. here's the link to what it should look like and here's what I've…
user16899383