tweet from processing
hello, i would like to know how i could go about have a user click a button from there what ever is on the screen from the web cam is saved and tweeted with a preset hashtag
View Articlehi I have a project where i need to follow an instagram hashtag and do something when new posts with said hashtag appear on instagram. All the examples i can find which are doing anything with...
View ArticleExporting PDF using a timer in an animation
I've managed to export a .tiff from a timer from this animation code below. But I cannot work out how to do the same with a PDF. I've looked up the PDF ref... any help with code appreciated. This uses...
View ArticleUse library oscp5 to connect multiple computers
Hello, I'm new in programming, I need to connect 4 computers with the same code, making an ellipse moves from the window of the first computer to the last one, and bounce back. Can anyone please help me?
View ArticleHow to Ray Cast in Box2DProcessing
I've been scouring the internet for ages looking for a good example/tutorial on how to use the rayCastCallback() function in Box2DProcessing. The only ones that I have found are for C++ or jBox2d and...
View ArticleRayCastCallback "returns" unexpected fraction values
The reportFixture() Function is supposed to return the fraction of the ray (I need this to tell how far away and obstacle is from the object). However, I can't figure out where the value is returned to...
View ArticleHow to put the first code in the second code?
int n = 256; int minRad = 50; //minimum radius int maxRad = 600;//maximum radius float nfAng = 0.01; // angle float nfTime = 0.005;//at every 0.005 the shape is being developed int outnum; void...
View ArticleAm I using Wolfram's API correctly?
Hello, Recently I've been trying to make some programs that use a bit of calculus to make graphs of functions. I don't really know how to use APIs that much, and Processing doesn't seem to have too...
View Article'ArrayIndexOutOfBoundsException: 0' when initializing Voronoi
I'm trying to make a sketch that draws text as a Voronoi tessellation. I used the geomerative library to get points around text. I was able to draw the points without a problem. Next I tried to used...
View ArticleTutorial Code Problem
Hi. I have this .txt file, exported from grasshopper. I am trying to use PVectore to split data in txt file and make a spiderweb from that, but I see error "array index out of bounds:1" in line 26....
View ArticleHow can i combine the first code which is create a shape in the second code...
int n = 256; int minRad = 50; //minimum radius int maxRad = 600;//maximum radius float nfAng = 0.01; // angle float nfTime = 0.005;//at every 0.005 the shape is being developed int outnum; void setup()...
View ArticleHow can i combine the first shape in the camera code?(develop the shape with...
SHAPE CODE: translate(width/2, height/2); //Specifies an amount to displace objects within the canvas beginShape(); //function that begins recording vertices for a shape for (int i=0; i<n; i++) {...
View ArticleHow to control a kinematic body with the keyboard in box2d processing ?
Hi/Bonjour, I'm trying to control a kinematic body with WASD keys to have it move around the screen like in a 2d game. Here is my mover class. Right now something is missing, but the "move" vector is...
View ArticleWarp sound with setSampleRate()
Hello fellow programmer. I am new to minim, but not new to processing and programming. I would like to create a sound file that will slowdown and change pitch simultaneously (like slowing down a...
View ArticleHow can i make the ball in the center growing with sound?
float distance = 0.0; float speed = 4; float objStep = 40; color c1, c2; boolean useRect; void setup(){ size(640, 640, P3D); rectMode(CENTER); mousePressed(); } void mousePressed(){ c1 = color(255); c2...
View ArticleHow can I detect sound with my mic in my computer?
I would like to make a shape bigger when my computer detect a sound.
View ArticleSelectOutput doesn't have any effect
I have modified a sketch which records sound and saves it on harddrive. In the setup-function, i call the selectOutput function. When i run the sketch, i can choose an output-file, but the data get...
View ArticleWhy does cpy() method for Vec2 in box2d not exist?
I need to use this method in order to prevent my code from making an unwanted reference to a Vec2 object. This is because the rayCast callback function uses the same point variable. I looked at the...
View ArticleHow to draw Shapes3D objects on PGraphics
I have recently installed the Shapes3D library and I'm so much enjoying it :) I'm wondering how to draw 3D objects on a PGraphics object not directly on the screen. In the following code, I want to...
View Articlehow can my lines become thicker (bold)when mouse is over?
import processing.sound.*; Amplitude amp; AudioIn in; float z = 0; int value = 0; void setup() { size(800, 800); background(255); // Create an Input stream which is routed into the Amplitude analyzer...
View Article