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

Gary Chambers gazzaguru2 at btinternet.com
Sat Mar 1 18:42:54 UTC 2008


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fills.png
Type: image/png
Size: 12150 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/ui/attachments/20080301/2c816bcf/fills-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: star_fills.png
Type: image/png
Size: 31927 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/ui/attachments/20080301/2c816bcf/star_fills-0001.png


More information about the UI mailing list