[Pharo-users] How to draw a Morph with Athens?

MartinW wm at fastmail.fm
Fri Mar 28 13:53:10 EDT 2014


At the moment i draw Morphs with Athens by copying how it is done in
AthensDemoMorph:

- 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!
M.



--
View this message in context: http://forum.world.st/How-to-draw-a-Morph-with-Athens-tp4751463.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




More information about the Pharo-users mailing list