Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Browsing all 2896 articles
Browse latest View live
↧

Adding sound

Hey there! So I have this code, it's a game and I would like to know how to add a sound whenever the ball falls, when it's game over. Thank you so much! float posx = width; float posy = height; float...

View Article


I can read Serial but How do I use offline maps??

I'm new to programming and most of what I do is copied and not from any thorough knowledge of programming. I know a little when I need to know a lot more to do what I want. I'm trying to use a serial...

View Article


How to change level at the end of a song?

Hello! In my project when a song ended I liked that an image appeared or changed level. How do I do

View Article

Initialize function with CP5 button

I have this code that draws hexagons randomly in a grid and coloring them randomly from an array. What I want to do is press a CP5 button to initialize the drawing function. If I press this button...

View Article

Mouse Press on Image to Add Extra Lives

I have a scoreboard and life displayer in my program. I have a random object flying around the screen. I want the user to be able to press on the flying object and they will earn an extra life each...

View Article


Question about Minim gallery

I found in examples "OFFLINE ANALYSIS" and I want to know how to change Camera Position by the frequencies of the sound file. Or how to have camera position changing while program is running

View Article

Using real time audio output

Hi guys, I have made a sketch that receives data my laptops microphone to make a visual react, but I would like the visual to react to real time audio output so I wouldnt be loading in a file import...

View Article

HYPE_Processing : Particles Accelerating Even after Reaching Destination

Problem: I have the following code to render a text of Bubbles on to the screen. The bubbles should move from a random location on the screen to their respective positions. I am using the HYPE...

View Article


[G4P] Issue with new Window

Hello. I have a problem with the drawHandler of a new window created with G4P. The window is created when a button is pressed, this is where the window is created and its drawHandler: void...

View Article


Sending and reciving variables

Is the any way I can send variables from one sketch to another while they are both running at the same time, directly or through a external file like a .txt or .xml ?

View Article

[G4P]

Hello! I have a bunch of G4P buttons, and I sometimes the following error, and all my buttons disappear! ########## EXCEPTION IN EVENT HANDLER An error occured during execution of the eventhandler:...

View Article

How would I make the sound play? It doesn't work!

Code: import processing.sound.*; //import sound file from data folder SoundFile file; void setup() { size(800, 800); } void draw() { background(255); drawFace(790, 750, 600, 600, 100, 673, 200, 245);...

View Article

[ArrayList] need help managing objects in an ArrayList of Objects

Hello I'm stuck in a logic problem with an ArrayList of Objects. Here's the deal. I'm coding a dataViz that maps the position of all the buses within the bus sistem. All the buses have a gps that...

View Article


Call a object's or class' function with thread()?

I'm trying to use threading to make it so I can display a "loading screen" while something is loading. The main class will draw the loading icon and start a thread to have the Menu Screen start...

View Article

How to properly handle with textBox's in draw() function ?

Hi all! In my project i've managed to create a sketch with two states representing a main screen, and once you click a button it changes to second state (at this point, everything is fine). The problem...

View Article


PeasyCam effecting on 3D, but not 2D shapes

Hello, I am new to the Processing coding environment, so I'm struggling a lot, however, I have a problem that I would need some help with. Currently, I'm working on a GUI as a part of an Internet of...

View Article

How to replace each pixels from a video feed by an image ?

Hello Processing talented & helpful community :) I am Barbara, I am pretty new to Processing and I am working on a project that is giving me trouble right now. Figured maybe someone here would hear...

View Article


I can't stop sound

When ever I do :stop() the sound continues on playing. I don't get any errors and nothing in the output. PImage background; PImage box; PImage HalfHalf; PImage Phone; PImage Skip; int MText = (42); int...

View Article

multi page PDF. / getting blank page every 5 pages

Wrote this little program that takes a master image (local), splits it into pages (because it's big), and reproduces it with tiles (taken from Flikr) based on averaged colors. On the back of each sheet...

View Article

Error waited 5000ms

Hello I quite often have this error for quite a while since I'm using the librairy Beads (wich is up on date). Here is the error I get java.lang.RuntimeException: Waited 5000ms for: <439eac3d,...

View Article
Browsing all 2896 articles
Browse latest View live