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.
Page Index Toggle Pages: 1
g.get() (Read 217 times)
g.get()
Dec 19th, 2008, 10:45am
 
i found the function g.get() as part of a code shown in "exhibition" and i don't know what it means. it is not described anywhere on the processing site!
Code:

PImage feed;

void setup() {

size(screen.width/2,screen.height/2,P3D);

feed = new PImage(width-20,height-20);

colorMode(HSB);
}

void draw() {
noStroke();
fill(color(random(256),255,255,32));
image(feed,0,0,width,height);
ellipse(mouseX+random(-10,10),mouseY+random(-10,10),20+random(20),20+random(20));
feed = g.get(10,10,width-20,height-20);
}

can someone clarify this for me?
thanks!
Re: g.get()
Reply #1 - Dec 19th, 2008, 1:38pm
 
have a look at http://processing.org/reference/get_.html

as far as i know 'g' is the current graphics object which is accessed if you simply write get(), too.
Page Index Toggle Pages: 1