Stef wrote:
>look for the AthensScene…
Thanks, did'n see the class comment there. Just for the records if anyone needs
it:
Display in Pharo:
===========
surface := AthensCairoSurface extent: 100@100.
surface drawDuring: [:canvas |
canvas surface clear: Color black.
canvas setPaint: (Color red).
canvas setShape: (-20@ -20 corner: 20@ 20).
canvas draw.
].
imageForm := surface asForm.
form asMorph openInWorld
Display in Seaside:
=============
renderContentOn: html
html imageForm: ... "add your image form here"