[Pharo-project] Athens & SVG (was: Re: new icon set )
Hi, there i uploaded an alpha version of Athens-SVG package on squeaksource/Athens. Many things are working, and many not yet ;) I testing things by trying to render different svg files using it like that: [1] (ASVGMorph fromFile: 'lion.svg') drawOn: Display getCanvas or like that: [2] (ASVGMorph fromFile: '7-icon-set/Connect$70426968946611.svg') setZoom: 10; drawOn: Display getCanvas (of course you can just use #openInWorld instead of #drawOn:) (and of course you don't have to create a morph.. you can just import svg getting an instance of ASVGRoot class, and then render it on any Athens canvas. [1] http://croczilla.com/bits_and_pieces/svg/samples/lion/lion.svg [2] http://www.tehkseven.net/blog/1/entry-1066-475-free-awesome-high-quality-ico... -- Best regards, Igor Stasenko.
cant resist.. one more ;) this one is piece of art. and it works, however i have to manually set the surface dimensions, because svg file does not specifying any width/height.. which by default is 100% by 100% .. so i have to implement a bounding box calculator to know which size svg can fit into. The file took from this page: http://croczilla.com/bits_and_pieces/svg/samples/ On 25 April 2012 08:33, Sven Van Caekenberghe <sven@beta9.be> wrote:
Yummy !
On 25 Apr 2012, at 07:59, Igor Stasenko wrote:
.. and , of course, some screenshots for thirsty people ;) <Screen Shot 2012-04-25 at 7.52.02 AM.png><Screen Shot 2012-04-25 at 7.58.34 AM.png>
-- Best regards, Igor Stasenko.
Cool. I will be able to use my InkScape skills with Pharo :-) Phil 2012/4/25 Igor Stasenko <siguctua@gmail.com>
cant resist.. one more ;) this one is piece of art.
and it works, however i have to manually set the surface dimensions, because svg file does not specifying any width/height.. which by default is 100% by 100% .. so i have to implement a bounding box calculator to know which size svg can fit into.
The file took from this page: http://croczilla.com/bits_and_pieces/svg/samples/
On 25 April 2012 08:33, Sven Van Caekenberghe <sven@beta9.be> wrote:
Yummy !
On 25 Apr 2012, at 07:59, Igor Stasenko wrote:
.. and , of course, some screenshots for thirsty people ;) <Screen Shot 2012-04-25 at 7.52.02 AM.png><Screen Shot 2012-04-25 at 7.58.34 AM.png>
-- Best regards, Igor Stasenko.
-- Philippe Back "Helping you hit the top 3 outcomes you really want to achieve" Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: phil@highoctane.be| Web: http://philippeback.eu | Blog: http://philippeback.be High Octane SPRL rue cour Boisacq 101 1301 Bierges
participants (4)
-
Igor Stasenko -
phil@highoctane.be -
Stéphane Ducasse -
Sven Van Caekenberghe