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

PGraphics Background Color

Hi there, when I save PGraphics to jpg file, the background color is always Black. I've tried ####.background(255) like this to change the background color. But I'm using my canvas with live Video. So...

View Article


Pull the vertex coords out of MPolygon class in Mesh library.

I have successfully created a convex hull around a randomly placed circle and box. However, since i want the filled shape to be a gradient i want to create a PShape using the vertex coords. So i need...

View Article


Using G4p

What value does a button return? What are the commands to use this value?

View Article

Processing Sound - Windows 7 Support

I wrote this really simple sketch on my macbook after installing the processing.sound library. it works exactly as it should ( moving the mouse along the horizontal axis I can control the speed of...

View Article

Array of identical samples. Minim triggering sample issue.

Hi there. I have an array of identical samples for two bouncing orbs which are also in an array. A sample is to play each time a ball falls below a virtual water level. They trigger just fine, but...

View Article


How can I facilitate smoother video playback?

I am working on a project that involves playing simple 1080p video in processing with the standard video library- however I am having difficult time with stability of the videos themselves in...

View Article

button CP5

hi, so i need to make the drawing change color every time i push the button.

View Article

How ro record audio?

Is there a way to record audio output from a sketch? I have code and library to record video that is images, but I am playing back audio and would like to record that as well. My apologies if this...

View Article


A Tutorial implementing anything that uses OAuth

Hello, Simply, I'm trying to access Twitter from within Processing. I have had zero luck and have seemingly scoured every resource on the internet. My first attempt involved this:...

View Article


glitchP5?

Hello, I am new here, I'm looking for glitchP5 library... for an old project. Anybody?

View Article

ControlP5 changing image button to the clicked image without actually...

I have an image button of a piano key, and I have it set to where if it is not clicked, it is white, if it is hovered over it is light grey, and if it is pressed it is medium grey. I would also like to...

View Article

How Do I Apply a Texture To My 3D PShapes?

I currently have 2 issues: I can't correctly apply a texture image to my PShapes My trapezoid PShape does not fill properly I currently have a "map.jpg" in the same folder as the processing file, so I...

View Article

Possible bug? ArrayIndexOutOfBoundsException when using SoundCipher...

I'm having an unusual problem with the SoundCipher library on Mac. This question is some combination of asking for help and a bug report. I wasn't sure where to file a bug-report, so I thought I would...

View Article


How to choose a movie file to play?

I wrote a simple movie player that can play and pause, but I want to be able to for the sketch to wait for a key to be pressed that would play the said movie. So nothing happens until you press '1' and...

View Article

Found out too many { characters with a } to match it

Im a processing user, and in one project im working in, my teacher ask me to start using tabs.But when i try to do so, when i draw all the figures it works with out errors, but im using buttons to...

View Article


Remove left-click requirement to move camera in PeasyCam

I am working on a Minecraft clone developed using Processing and PeasyCam. I will code the rest myself, with help from this forum. I need to know how to track mouse movement without having to...

View Article

Access an array in a class. (MPolygon)

I have successfully created a convex hull around a randomly placed circle and box. However, since i want the filled shape to be a gradient i want to create a PShape using the vertex coords. So i need...

View Article


Image may be NSFW.
Clik here to view.

How to 'store' previous keyPressed data in the same sketch

I can get one colored bar to expand as I hold down the key. I have another an issue of getting another colored bar to continue where the other one left off? Essentially it continues right after the...

View Article

Creating a timer

Hi, I am in need of some assistance. I'd like to write code that will execute when you click the mouse, and I want the action to run for a maximum of four seconds. If the mouse is still pressed for...

View Article

http.requests not working on 1 site

I'm gathering daily weather forecast temperature data from 3 sites/pages via the http.requests library. It works fine on the 2 url's that are commented out in my code, but not on the third. Any idea...

View Article
Browsing all 2896 articles
Browse latest View live