A small change... for a start
Posted by
Gary Chambers-4 on
Mar 01, 2008; 6:42pm
URL: https://forum.world.st/Host-windows-tp133864p133865.html
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/ui