[Pharo-users] How to draw a Morph with Athens?
siguctua at gmail.com
Fri Mar 28 14:36:18 EDT 2014
u you u no draw morphs by athens :)
- use AthensWrapMorph.
put as many submorphs into it, and they all will be drawn via Athens.
eventually, the need in wrap morph will disappear once WorldMorph (the root
of all morphs) start using Athens directly.
On 28 March 2014 18:53, MartinW <wm at fastmail.fm> wrote:
> At the moment i draw Morphs with Athens by copying how it is done in
> - adding a surface variable,
> - initializing an AthensCairoSurface,
> - getting an athens canvas by calling: surface drawDuring: [:canvas | ]
> - …
> Is there already a more straightforward possibility in the meantime?
> Also the way it is done in the AthensDemoMorph, when i save and quit an
> image with such a Morph open, there is a drawing error (red rectangle with
> yellow cross), once i restart the image.
> BTW, i really like drawing with Athens!
> View this message in context:
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-users