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:
masurr
masurr's Profile
1
Posts
3
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
Mysterious Color Problem
[8Replies]
21-Sep-2012 01:49 PM
Forum:
Programming Questions
Hi.
I'm new to Processing so I don't really know much about it :D That's the reason I came here.
I have a mysterious problem and I can't solve it on my own.
I had to draw a grid. Done.
Second thing is to change color from left to right. Sounds easy, doesn't it?
I don't get why the horizontal lines aren't colored. What did I do wrong?
float r = 255;
void setup() {
size (500, 500);
}
void draw() {
noLoop();
colorMode(HSB);
for (int i = 0; i <= width; i += 10) {
for (int j = 0; j <= height; j += 10) {
r -= 0.1;
stroke(r, 255, 255);
line (i, 0, i, height); //This is colored by "stroke()"
line (0, j, width, j); //This isn't
}
}
}
«Prev
Next »
Moderate user : masurr
Forum