Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 0
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
New to this Portal?
Click on Join Now to Sign Up
Join Now
Help
Feedback
Sign In
Processing Forum
Recent Topics
All Forums
Search All
Tags
Author
Advanced Search
Search
New Topic
Screen name:
ricklam
ricklam's Profile
1
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
the different between static & active modes.
[3Replies]
05-Jul-2012 11:29 PM
Forum:
Programming Questions
I have some confusion with these 2 scripts.
The 1st scipt is only running once (static) & the 2nd one is running continuously (active mode).
they should provide similar result; a line cross at the centre.
However,the result of the 2nd one wan't what I expected.
is there any fundamental error in the script that let me down? many thanks!
1st script
_____________________________________________________________________
import processing.opengl.*;
size(100, 100,OPENGL);
background(0);
scale(width/2,height/2);
translate(1.0,1.0);
stroke(255);
strokeWeight(1.0/width);
line(-1,0,1,0);
line(0,-1,0,1);
2nd script
_____________________________________________________________________
import processing.opengl.*;
void setup()
{
size(100, 100,OPENGL);
background(0);
scale(width/2,height/2);
translate(1.0,1.0);
}
void draw(){
stroke(255);
strokeWeight(1.0/width);
line(-1,0,1,0);
line(0,-1,0,1);
}
«Prev
Next »
Moderate user : ricklam
Forum