Athens & SVG (was: Re: new icon set )

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Athens & SVG (was: Re: new icon set )

Igor Stasenko
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-icons-for-designers/

--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Igor Stasenko
.. and , of course, some screenshots for thirsty people ;)

Screen Shot 2012-04-25 at 7.52.02 AM.png (139K) Download Attachment
Screen Shot 2012-04-25 at 7.58.34 AM.png (55K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Sven Van Caekenberghe
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>


Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

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 <[hidden email]> 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.

Screen Shot 2012-04-25 at 8.58.19 AM.png (111K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

philippeback
Cool. I will be able to use my InkScape skills with Pharo :-)

Phil

2012/4/25 Igor Stasenko <[hidden email]>
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 <[hidden email]> 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: [hidden email] | Web: http://philippeback.eu | Blog:

High Octane SPRL
rue cour Boisacq 101
1301 Bierges

Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Stéphane Ducasse
In reply to this post by Igor Stasenko
Yes. I'm one of those……

Gorgeous!!!!

Stef

On Apr 25, 2012, at 7:59 AM, 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>


Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Fernando olivero-2
In reply to this post by Igor Stasenko
NICE!!! Great work Igor!

Fernando

On Wed, Apr 25, 2012 at 7:59 AM, Igor Stasenko <[hidden email]> wrote:
> .. and , of course, some screenshots for thirsty people ;)

Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Fernando olivero-2
Seems it depends on XMLDOMParser?
How can i install it?



On Thu, Apr 26, 2012 at 3:30 AM, Fernando Olivero
<[hidden email]> wrote:
> NICE!!! Great work Igor!
>
> Fernando
>
> On Wed, Apr 25, 2012 at 7:59 AM, Igor Stasenko <[hidden email]> wrote:
>> .. and , of course, some screenshots for thirsty people ;)

Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Sean P. DeNigris
Administrator
Fernando olivero-2 wrote
Seems it depends on XMLDOMParser?
How can i install it?
        Gofer new
        squeaksource:  'MetacelloRepository';
        package:  'ConfigurationOfXMLSupport'; load.

        (Smalltalk at: #ConfigurationOfXMLSupport) load.

Sean
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Athens & SVG (was: Re: new icon set )

Fernando olivero-2
In reply to this post by Fernando olivero-2
Thanks! I wasnt aware of that projec.
Fernando

On Thu, Apr 26, 2012 at 4:36 AM, Sean P. DeNigris <[hidden email]> wrote:

>
> Fernando olivero-2 wrote
>>
>> Seems it depends on XMLDOMParser?
>> How can i install it?
>>
>
>        Gofer new
>        squeaksource:  'MetacelloRepository';
>        package:  'ConfigurationOfXMLSupport'; load.
>
>        (Smalltalk at: #ConfigurationOfXMLSupport) load.
>
> Sean
>
> --
> View this message in context: http://forum.world.st/Athens-SVG-was-Re-new-icon-set-tp4585623p4588733.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>