Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kevinwitkowski
kevinwitkowski's Profile
6
Posts
6
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
No problem ?
[3 Replies]
06-Mar-2012 12:30 PM
Forum:
Programming Questions
I tried to make a background for my code
and no code came up just this :
sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
Help?
Unexpected Token: void problem
[2 Replies]
06-Mar-2012 07:45 AM
Forum:
Programming Questions
int value = 0;
PShape ID;
PShape logo;
float angle;
float jitter;
void setup() {
size(610,200);
ID = loadShape("ID.svg");
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
void mouseClicked() {
if(second() % 7.5 == 0)
jitter=2.5
angle = angle+jitter;
else {
jitter=0;
}
pushMatrix();
float c = cos(angle);
translate(width/7, height/2);
rotate(angle*TWO_PI/300);
shape(logo, 0, 0, 100, 100);
popMatrix();
translate(width/1.7, height/2);
shape(ID, 0, 0, 450, 125);
}
I'd be helpful if anyone could help me with my problem.
Thanks
Click to rotate faster
[1 Reply]
05-Mar-2012 05:44 PM
Forum:
Programming Questions
Hey guys, is there a input function
for a mouse click to rotate a svg faster?
Code is here
PShape ID;
PShape logo;
float angle;
float jitter;
void setup() {
size(1100,250);
ID = loadShape("ID.svg");
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
// during even-numbered seconds (0, 2, 4, 6...)
if (second() % 7 == 0) {
jitter=2.5;
}
angle = angle+jitter;
pushMatrix();
float c = cos(angle);
translate(width/10, height/2);
rotate(angle*TWO_PI/360);
shape(logo, 0, 0, 200, 200);
popMatrix();
translate(width/1.7, height/2);
shape(ID, 0, 0, 900, 250);
}
Thanks!
2 SVG in same processing problem
[3 Replies]
05-Mar-2012 03:41 PM
Forum:
Programming Questions
Hey everyone!
I have a bit of a problem,
I have 2 sag's that i wish to put in the same processing file.
And when I try it doesn't work.
Any help?
I will provide both codes
1-----
PShape logo;
float angle;
float jitter;
void setup() {
size(800,250);
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
// during even-numbered seconds (0, 2, 4, 6...)
if (millis() >= 7000){
jitter = 2.5;
}
angle = angle + jitter;
pushMatrix();
float c = cos(angle);
translate(width/6, height/2);
rotate(angle*TWO_PI/360);
shape(logo, 0, 0, 200, 200);
popMatrix();
}
2-----
PShape ID;
void setup() {
size(800,250);
ID = loadShape("ID.svg");
smooth();
frameRate(50);
shapeMode(RIGHT);
}
void draw() {
background(255,255,255);
translate(width/3.5, height/6);
shape(ID, 0, 0, 0, 0);
}
Thanks for any help!
A simple fade in for a SVG
[3 Replies]
05-Mar-2012 03:38 PM
Forum:
Programming Questions
Is there a simple code to apply to a svg to fade?
thanks!
Code below if it helps!
PShape logo;
float angle;
float jitter;
void setup() {
size(800,250);
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
// during even-numbered seconds (0, 2, 4, 6...)
if (millis() >= 7000){
jitter = 2.5;
}
angle = angle + jitter;
pushMatrix();
float c = cos(angle);
translate(width/6, height/2);
rotate(angle*TWO_PI/360);
shape(logo, 0, 0, 200, 200);
popMatrix();
}
Looping problem
[4 Replies]
05-Mar-2012 01:03 PM
Forum:
Programming Questions
Hey guys,
I would really like to know how to stop a loop on a specific time (such as: 7 seconds)
I have my processing code below:
PShape logo;
float angle;
float jitter;
void setup() {
size(800,250);
logo = loadShape("logo.svg");
smooth();
frameRate(50);
shapeMode(CENTER);
}
void draw() {
background(255,255,255);
// during even-numbered seconds (0, 2, 4, 6...)
if (second() % 7 == 0) {
jitter = 2.5;
}
angle = angle + jitter;
pushMatrix();
float c = cos(angle);
translate(width/2, height/2);
rotate(angle*TWO_PI/360);
shape(logo, 0, 0, 250, 250);
popMatrix();
}
«Prev
Next »
Moderate user : kevinwitkowski
Forum