[ENH] Bob's World Gradient (was: Re: Code Challenge !!!)

Raab, Andreas Andreas.Raab at disney.com
Sat Mar 25 01:53:07 UTC 2000


> Maybe I'll try to work on this at some point.  Hmm, now where in the
> FillStyle hierarchy would HalftoneFillStyle be most appropriate...

>From my point of view - nowhere. You were talking about a *very* specific
representation of Colors for a pixel based output device and there is no
point in specifying a pixel pattern if you really mean a color (that's what
you mean, isn't it?!) If you want to do halftoning on the fly the right
place to do this is in class FormCanvas and nowhere else. So that, for
instance, a PostScriptCanvas gets what is intended - the color - rather than
some yet-to-be-guessed-at pixel pattern. In fact, I have already submitted a
change set that tries to get rid of such a usage (for colors as well as
combination rules) because it is absolutely necessary to state what you
-mean- rather than handing in some obscure bits. If you mean a color, then
pass a color. The canvas is the thing you want to make smart enough to
realize that on an 8bit form it might be a good idea to use a dither pattern
rather than the nearest color.

  - Andreas





More information about the Squeak-dev mailing list