<div dir="ltr"><div>Hello all,</div><div><br></div><div>Does anyone have pointers on creating highly-customized fill styles for Morphs? I have some interface elements that require specific canvas drawing operations as their fills.</div><div>  <br></div><div>I had originally done this work in Pharo, but they treat FillStyle differently. In that system whenever Canvas >> fillRectangle:fillStyle: is sent, the result is simply:</div><div>```</div><div>fillRectangle: aRect fillStyle: aFillStyle</div><div>    aFillStyle fillRectangle: aRect on: self<br></div><div>```</div><div>This gives each FillStyle subclass the chance to perform explicit operations on the passed canvas. <br></div><div>  <br></div><div>I would like to keep this library (a recreation of the Platinum interface) as cross platform as possible. Right now I see the following options:</div><div>1. Add a new kind of FillStyle check in the various Canvas operations that require it (ie isSolidFill and friends), which requires modifying base methods;</div><div>2. Forget using FillStyles at all and fold all drawing operations into my Morphs themselves;</div><div>3. Something else</div><div>  <br></div><div>I'm hoping there's a slight chance someone on this list might have a #3!</div><div><br></div><div>Thanks for any pointers,<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Eric</div></div></div></div></div>