Code Challenge !!!

Bert Freudenberg bert at isgnw.CS.Uni-Magdeburg.De
Fri Mar 24 08:27:51 UTC 2000


On Thu, 23 Mar 2000, Jim Benson wrote:

> I use the nefarious GradientFillMorph #drawOn: routine. This routine
> actually has a comment :-) which reads:
> 
>  "Note that this could run about 4 times faster if we got hold of
>  the canvas's port and just sent it copyBits with new coords and color"
> 
> I'll also note that Andreas touched it in February, so maybe the comment
> isn't valid anymore. 

I'd guess so. For example, the class comment is quite misleading as no
caching is done anymore. The instvars colorArray and colorDepth can be
removed because they're unused.

What might be challenging (maybe it's easy) is making the World be able to
have a gradient - PasteUpMorph actually is a subclass of GradientFillMorph
but it's drawOn: method is only used in a Playfield, not for the World.

But maybe the class can be removed entirely since we now have
GradientFillStyles and don't need that special Morph anymore ...

  -Bert-





More information about the Squeak-dev mailing list