[ENH] Bob's World Gradient (was: Re: Code Challenge !!!)
arning at charm.net
Fri Mar 24 16:12:22 UTC 2000
On Fri, 24 Mar 2000 16:52:27 +0100 (CET) Bert Freudenberg <bert at isgnw.CS.Uni-Magdeburg.De> wrote:
>.... And now Jim's challenge is in place again - how to make that darn
>thing fast? Like when having the rounded world menu dragging the mouse
>over the items is really slow. There is a reason why we have FillStyles,
>one of them being it's *awfully* slow to build the color ramp so we do it
>once and use it thereafter.
>Any objections to abandoning GradientMorph which saves us 4 (four!)
>instance variables in the World?
Even if you don't get agreement on ditching GradientMorph, you could cache the GradientFillStyle and only redo it if one of the colors changes. I did that in FreeCell>>fillStyle.
More information about the Squeak-dev