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_
   Bugs
   Software Bugs
(Moderator: fry)
   clipping problem with scale()?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: clipping problem with scale()?  (Read 319 times)
kevinP

Email
clipping problem with scale()?
« on: Feb 19th, 2004, 10:43pm »

Look at this...
 
The 2nd rectangle drawn correctly clips the first, but the rest all appear open even though they are filled. (Unless I'm mistaken)
 
-K
Code:

// scale
// 2nd rect drawn masks first, but all others?
 
void setup()
{
    size(200, 200);
    int x = 100;
    int y = 100;
    int r, g, b;
    r = 190;
    g = 240;
    b = 150;
 
    for(int i = 0; i < 10; i++) {
        fill(r,g,b);
        rect(x, y, 100, 100);
        b -= 15;
        x += 10;
        y += 15;
        scale(0.67);
    }
}
« Last Edit: Feb 19th, 2004, 10:48pm by kevinP »  

Kevin Pfeiffer
fry


WWW
Re: clipping problem with scale()?
« Reply #1 on: Feb 20th, 2004, 6:33pm »

ah, the graphics engine.. so many little tweaks to make..
 
i've added it to the list.
 
Pages: 1 

« Previous topic | Next topic »