[UI] A small change... for a start

Travis Kay tlk at nb.sympatico.ca
Sat Mar 1 19:35:07 UTC 2008


Gary,

This sounds like a good idea to me; improves the overall design and adds
some very nice flexibility.

Travis

On Sat, 2008-03-01 at 18:42 +0000, Gary Chambers wrote:
> Well, not that small.
> 
> After a lengthy discussion with Sig (Igor) last night we came to the
> conclusion that it would be nice to improve the behaviour of
> colours/fillstyles passed to canvases for drawing.
> 
> At present, the canvas code directly checks the type of fillstyle and does
> things accordingly. It would, IMHO, be better if the canvas
> double-dispatched to the fillstyle to achieve its ends.
> 
> This would allow, for instance, a CompositeFillStyle class to be
> implemented, facilitating fills of the kind shown in the attachments (from
> Sig).
> 
> All without having to rework Morphic's handling of its fillstyles (short of
> actually assigning a new kind of fillstyle to a particular Morph).
> 
> Even the more esoteric example from Sig (star_fills) would be possible.
> Of course, the suggested composite fill would be cool enough!
> 
> Comments around this would be welcome before I proceed...
> 
> Regards, Gary.
> _______________________________________________
> UI mailing list
> UI at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/ui



More information about the UI mailing list