Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
brucell
brucell'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
Rotate problem
[1 Reply]
22-Oct-2011 07:22 AM
Forum:
Contributed Library Questions
Hi all,
Im trying to rotate in this program but every time it resets the rotation
How i can stop the rotation and start again by touch?
import oscP5.*;
import netP5.*;
import tuioZones.*;
TUIOzoneCollection zones;
PFont font;
float rot_inicial, rot_atual,rodar;
void setup(){
size(screen.width,screen.height);
zones=new TUIOzoneCollection(this);
zones.setZone("zone1", width/2,height/2,300);
smooth();
font = loadFont("Serif-24.vlw");
textFont(font);
}
void draw(){
background(0);
fill (150);
zones.drawCirc("zone1");
fill (0);
if (rot_atual != rot_inicial)
{
rodar = rot_atual;
translate(width/2, height/2);
rotate(rodar*2*PI);
text("rotate me",0,0);
rot_atual = zones.getGestureRotation("zone1");
}
else
{
rot_inicial = zones.getGestureRotation("zone1");
rodar = rot_inicial;
translate(width/2, height/2);
rotate(rodar*2*PI);
text("rotate me",0,0);
}
rot_atual = zones.getGestureRotation("zone1");
}
Photo viewer help
[2 Replies]
10-Aug-2011 10:19 AM
Forum:
General Discussion
Hi im new in processing, and i need a photo viewer like this
one
working in processing in a multitouch app, can some one help me?
«Prev
Next »
Moderate user : brucell
Forum