2015-06-29 12:16 GMT+02:00 Stephan Eggermont <step...@stack.nl>:

> On 29-06-15 10:26, Hannes Hirzel wrote:
>
>> Thank you, Stephan, for providing a well worked out example continuing
>> where
>> Morphic tutorials normally end. This is a real need to unearth functions
>> which have been there fore years but mostly unused.
>>
>> The two video clips document the use cases of the code nicely.
>>
>> A question not answered yet is: How do I export the panel with the cards
>> as
>> an SVG file?
>>
>
> Hmm. What would be the best way to do that?
> - I assume in Bloc with Cairo I should be able to use an SVGCanvas?
>

There is no SVGCanvas. Only AthensCanvas with different possible backends
(only cairo and balloon for now)


> - SVG is pretty simple, I could just walk the morph tree and generate a
> file.
>

Yes, but clipping may be an issue, and any Morph with  a slightly more
advanded drawing method (like lists)
may be more difficult. And you need a way to convert patterns/images to
something that can be included
in a svg file.


> - Roassal2 has SVG export. I could generate a Roassal image and export
> that.
>

Roassal is based on its own drawing/shape library (Trachel). Yes Trachel
uses Athens, but trachels
svg export does not (AFAIK).


>
> Stephan
>
>
>
>

Reply via email to