Results 1 to 4 of 4
Thread: Processing help
- 02-22-2010, 12:44 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 1
- Rep Power
- 0
Processing help
Hi guys I recently got into this and need some help developing a certain app. The instructions of the app is to make the color of the app change. I am using Processing now and the instructions is to use the IF/ELSE. I am familiar with PHP but this is a bit new to me. I have to use mouseX and mouseY. here is the code I have. I want it that when I click over the left top square it changed both black squares white.
Java Code:int x; int y; void setup() { loop(); size(200, 200); background(255,0,0); fill(0); rect(0, 0, 100, 100); fill(0); rect(100, 100, 100, 100); } if (mouseX - (0, 0, 100, 100)) { fill(255); rect(0, 0, 100, 100); fill(255); rect(100, 100, 100, 100); }
- 02-22-2010, 04:38 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you clear-up bit more your requirement? Do you want to fill colors in a specific area?
-
eranga, don't waste your time as this was cross-posted in the sun forum with extensive discussion there.
- 02-23-2010, 02:13 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Oops, better to register on Sun forums as well. I really hate this, I'm looking to help anytime, but not in this way.
Similar Threads
-
image processing
By sunithamm in forum Advanced JavaReplies: 6Last Post: 12-30-2010, 11:46 AM -
Image Processing
By Josh_FL in forum Advanced JavaReplies: 4Last Post: 12-30-2008, 02:45 AM -
image processing
By sathish natrajan in forum Java 2DReplies: 2Last Post: 11-06-2008, 05:13 PM -
list processing
By kazitula in forum Java AppletsReplies: 1Last Post: 01-22-2008, 09:35 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks