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_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   why do some blocks behind text darken?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: why do some blocks behind text darken?  (Read 288 times)
RoBo

Email
why do some blocks behind text darken?
« on: May 23rd, 2003, 8:57pm »

For my text that's against the background, it's as if a bounding box, like blocks of set type, darkens around each letter as I use the applet.  I'm using noBackground() and would like to keep that for the text.
Also, do I need hint(SMOOTH_IMAGES) every time I redraw a letter or shape I want to anti-alias?
Thanks,
RoBo
 
arielm

WWW
Re: why do some blocks behind text darken?
« Reply #1 on: May 24th, 2003, 1:11am »

hint(SMOOTH_IMAGES) can be set once for all...
 
for the other issue: noBackground() means that the screen is not cleared at the beginning of a new frame, so each letter (which is, after all, a texture drawn with transparency) gets incremented opacity on the edges...
 
photoshop analogy: it's like taking a transparent layer with an antialiased black shape in the middle, and duplicating (the layer) x times...
 
make sense?
 

Ariel Malka | www.chronotext.org
RoBo

Email
Re: why do some blocks behind text darken?
« Reply #2 on: May 24th, 2003, 2:58am »

Thanks.  That's still a little wierd.  I thought I tried background(255) before, but it works now.  On to digest your other suggestion...
 
Pages: 1 

« Previous topic | Next topic »