|
Author |
Topic: clipping problem with scale()? (Read 319 times) |
|
kevinP
|
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
|
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.
|
|
|
|
|