[Pkg] The Trunk: Morphic-fbs.656.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Jun 3 17:58:14 UTC 2013
Frank Shearar uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-fbs.656.mcz
==================== Summary ====================
Name: Morphic-fbs.656
Author: fbs
Time: 3 June 2013, 6:56:49.298 pm
UUID: 72379fac-2663-4f14-af9b-fcf052179554
Ancestors: Morphic-fbs.655
Levente Uzonyi points out that #stencil is quite general, so belongs in Morphic-Support, rather than EToys.
=============== Diff against Morphic-fbs.655 ===============
Item was added:
+ ----- Method: Form>>stencil (in category '*Morphic-Support-image manipulation') -----
+ stencil
+ "return a 1-bit deep, black-and-white stencil of myself"
+
+ | canvas |
+ canvas := FormCanvas extent: self extent depth: 1.
+ canvas fillColor: (Color white).
+
+ canvas stencil: self at: 0 at 0
+ sourceRect: (Rectangle origin: 0 at 0 corner: self extent) color: Color black.
+
+ ^ canvas form
+ !
More information about the Packages
mailing list