We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › p5 calls in subclass
Page Index Toggle Pages: 1
p5 calls in subclass (Read 580 times)
p5 calls in subclass
Apr 26th, 2009, 2:44pm
 
hei guys i'm doing a project with some classes
and i'm writing with eclipse

i have a ring class, a group of particles inside the ring and the particle, so 3 class, Ring, Group and Particle. onlu Ring sublasses PApplet. i'd like to call circle() and pushMatix and other processing core methods inside class Group. how can i do?

and to have a class that have a "bitmap content" like BitmapData in actionscript3 in which i have a matrix (so with some kind of setPixel() and getPixel ) thar can be visualized? PImage?

and where are some howto? like exemples of what in processing is the display list model in actionscript 3, for examples
Re: p5 calls in subclass
Reply #1 - Apr 26th, 2009, 3:25pm
 
1) You should read, or re-read, Processing in Eclipse, which explains how to call Processing's functions in another class.
2) PImage: yes.
3) I have not idea what a display list model does... But you might find some answers in Processing \ Hacks.
Re: p5 calls in subclass
Reply #2 - Apr 27th, 2009, 2:04am
 
yeah, i sould read it : )
thanks, and again, greetings for this forum!!
Page Index Toggle Pages: 1