|
Author |
Topic: layered objects allow line bleed-through (Read 454 times) |
|
Euskadi
|
layered objects allow line bleed-through
« on: Sep 3rd, 2004, 3:26am » |
|
I think this is a new one. In this example, lines are drawn, then covered with nested rectangles, then I write some text.... and the lines show up in the text as white streaks through the characters. Code: void setup(){ size(400,150); background(255); stroke(0,0,255); //make some lines, these will bleed through into the font fill for (int i=0; i< 40; i++){ line(i*10,0, 15 + i*10,height); } fill(255); stroke(0,0,255); //make a blue box rect( 5, 5, width -10, (height - 10)/2); //draw a line below the box, this will bleed though into the font fill line( 5, (height - 10)/2 + 12, width-10, (height - 10)/2 + 12); fill(0,0,255); //draw a blue box; rect(50,50,width-100,height-100); fill(255); //draw a white box inside rect(51,51,width-102,height-102); fill(0,0,255); BFont metaBold = loadFont("Meta-Bold.vlw.gz"); textFont(metaBold, 32); //make some text text("http://www.processing.org", 55, 10+ height/2); } |
| I naively created something like this before I realized I could do a stroke(0,0,255) with a fill(255) to create a box within which to write some text. To my chagrin, bleed-through. But, if you do a simple rect, it does the same thing. And, if you reverse the stroke & fill settings, the bleed-through reverses.
|
|
|
|
fry
|
Re: layered objects allow line bleed-through
« Reply #1 on: Sep 3rd, 2004, 3:59pm » |
|
interesting one.. i know the cause, and will get it repaired along with some other related line/depth sorting bugs.
|
|
|
|
|