Well, to my mind there is no need for fillstyle type testing in a properly refactored Morphic. There is with what we currently have. (Will post again with a more comprehensive outlook on things).
----- Original message ----- From: Igor Stasenko siguctua@gmail.com To: Squeak's User Interface ui@lists.squeakfoundation.org Sent: Sun, 23 Mar 2008, 03:36:35 GMT Subject: Re: [UI] A small change... for a start On 23/03/2008, Gary Chambers gazzaguru2@btinternet.com wrote:
But the fillstyle is only now aware of the canvas, not the morph (was neither before).
Yes, it's not and shouldn't be. As far a morph provides a coordinates of areas to fill, only the fillstyle can choose how to fill them. An isXXXFill patterns is really shows that parts of fillstyle behavior are handled by external entities, which adds complexity and uncertainty to many places in code.
Agree with you on relative vs absolute coordinates though.
TC. Gary.
On 23/03/2008, Gary Chambers gazzaguru2@btinternet.com wrote:
Well, to my mind there is no need for fillstyle type testing in a properly refactored Morphic. There is with what we currently have. (Will post again with a more comprehensive outlook on things).
Btw, there are nice work with adding a fill handles to gradient fills (see FunSqueak image).
A small source of inspiration:
http://www.crystalbutton.com/examples.php http://www.likno.com/index.html