Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
leegs710
leegs710'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
how to pause & resume drawing a line ?
[3 Replies]
04-Oct-2011 07:52 PM
Forum:
Programming Questions
hi there :)
I'm trying to draw a line separate when some keys pressed...
I'm not using line(mouseX, mouseY, pmouseX, pmouseY)
because I want to change the code that can be used with kinect, 3D.
There is a code.
I want to make
if DOWN arrow pressed, a line ends and mouse cursor moves without drawing a line,
if UP arrow pressed, a second line starts to be drawn (separate from the first line)
any idea? TAT
It is driving me crazy plz help !!!!!!!
class Line {
ArrayList<PVector> polyline = new ArrayList<PVector>();
PVector origin;
Line() {
origin = new PVector(mouseX, mouseY);
}
void update() {
polyline.add(new PVector(mouseX, mouseY));
}
void display() {
noFill();
strokeJoin(ROUND);
stroke(0,0,255, 100);
strokeWeight(10);
beginShape();
for(PVector p : polyline){
vertex(p.x, p.y);
}
endShape();
}
}
Line l;
void setup() {
size(400, 400);
smooth();
l = new Line ();
}
void draw() {
background(0);
l.update();
l.display();
}
How to make "Kinect graffiti" stuffs????
[2 Replies]
17-Jul-2011 11:04 PM
Forum:
Integration and Hardware
Hi, I'm quite a newbie learning Processing for months.
I've seen "kinect graffiti"
http://www.creativeapplications.net/processing/kinect-graffiti-tool-processing-kinect/
it was really fascinating to me so I wanted to make this one by myself..
but I have no idea how to start :(
Is there anyone who tried to do same thing with me before ? or I really appreciate just some advice or sample codes, please... :-)
Have a good day, thanks!
«Prev
Next »
Moderate user : leegs710
Forum