Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
planctum
Email ID:
planctum@yahoo.com
planctum's Profile
2
Posts
2
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
PulseIn() in Processing
[4 Replies]
08-Feb-2011 03:38 PM
Forum:
Integration and Hardware
Hello friends!
Is there an equivalent Arduino command
PulseIn( )
in Processing? I want to count ms between HIGH and LOW.
Thanks,
João Alexandre
Perlin noise plot graphic
[1 Reply]
30-Nov-2010 09:33 AM
Forum:
Programming Questions
Hi!!
I wrote this little code to plot a updated graphic of a Perlin noise in a 720x240 window , this is done
by shiftting the plot to left side of the window each second; but the plot is updated only when I minimize
and again maximize the window. Where is my mistake? Can someone help me?
Thanks, planctum.
//Plot Perlin Noise
//by planctum, nov30.2010,version:1.0
int i=0;
int j=0;
int k=0;
int n=1000;
int prevMillis=0;
int tamMatrx=3000;
int amplitude=300;
float p=0.0;
float[] m=new float[tamMatrx];
//
void setup(){
size(720,240);
for(j=0; j<tamMatrx; j++){
m[j]=noise(p);
p+=0.01;
strokeWeight(1.5);
smooth();
}
}
//
void draw(){
for (k=0; k<= tamMatrx; k++){
j=k;
background(255);
for(i=0; i<=width; i++){
point(i, amplitude*m[j]);
j++;
}
prevMillis=millis();
while(millis() - prevMillis <= n){ }
}
}
«Prev
Next »
Moderate user : planctum
Forum