Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
doby1984
doby1984's Profile
2
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
a question regarding video handling
[1 Reply]
02-May-2013 01:16 PM
Forum:
General Discussion
I want to do a performance project where I need to layer a number of videos together(all at 100% opacity), and I can in real time erase away the different video layers.
how would I go about that? Can someone just point me to a general direction plz?
Thank you!
a noob question I can't figure out...please help.
[5 Replies]
10-Jul-2012 02:30 PM
Forum:
Programming Questions
I'm following the getting started with processing book. and there s a piece code I can't quite wrap my head around.
float x;
float y;
float px;
float py;
float easing = 0.05;
void setup() {
size(480, 480);
smooth();
stroke(0, 102);
}
void draw() {
py = y;
px = x;
float targetX = mouseX;
x += (targetX - x) * easing;
float targetY = mouseY;
y += (targetY - y) * easing;
float dia = dist(x, y, px, py);
ellipse(x, y, dia, dia);
println(x + ":" + px);
}
here are a few things I couldn't quite figure out.
first if py = y and px = x shouldn't they be identical? why are they returning different values?
second, what's the purpose declaring targetX and targetY? why can't I just use mouseX and mouseY?
this is my first time learning to code, so please help me out.
Thank You!
«Prev
Next »
Moderate user : doby1984
Forum