FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   Newbie: need help w/ Objects and Classes
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Newbie: need help w/ Objects and Classes  (Read 322 times)
Jkirch


Newbie: need help w/ Objects and Classes
« on: Dec 2nd, 2004, 4:42am »

Here's my pseudo code:
 
1: look at the video for 5 specific colors  
 
2: On detecting those colors and their positions in the video image, look back to an array for a set value
 
3: perform a simple math problem: ie: red = 1, blue = 2, green =3  so red + blue = green is the same as 1 + 2 = 3
 
I kinda sorta understand that in using a Rect + similarity threshold, I can create a class of Rect that I can then assign parameters to. I really don't understand how to put the syntax together though.  The code I have working now is too long to post...any nudges in the right direction, or suggestions where I can learn more about classes would be appreciated:
 
 
mohn

WWW Email
Re: Newbie: need help w/ Objects and Classes
« Reply #1 on: Dec 2nd, 2004, 1:46pm »

i know there was a oop tutorial listed on this board somewhere... can't remember who - i think toxi posted it or maybe arielm. another place to look is here --> http://stage.itp.tsoa.nyu.edu/%7Edts204/ppaint/week5/index.html
 
is this jen or jon email me your code and maybe i can help you out a bit.  
 
Pages: 1 

« Previous topic | Next topic »