The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Someone asked for a VW SVG icon?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Someone asked for a VW SVG icon? Posted: Sep 14, 2007 9:04 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Someone asked for a VW SVG icon?
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

In a previous post I pointed out how similar Initech and VisualWorks's icons were. Humorous as it was - someone in the comments asked me for an SVG version of our icon so that we have something that scales nicely. My initial reaction was, 'yeah right, I'm not a graphics designer'.. but then I thought about some of the other cool things I was able to produce with Cairo graphics.. and I thought this evening "What the heck, it's just a bunch of boxes".

So, if you load up the latest version of CairoGraphics and Gizmo from public store, you can now view the VisualWorks and ObjectStudio icons in Gizmo with:

Gizmos.CincomSmalltalkLogo openVisualWorks
  ... or ...
Gizmos.CincomSmalltalkLogo openObjectStudio 

But that still didn't help me with the SVG problem.. how to make SVG. Well I didn't pick Cairo just because it'd make it easy for me to do it - I picked it because I knew it could output as SVG. I'd never done this before, so I was going with a little bit of faith and my fingers crossed intensely.

Cairo can also output PNG and PDF.. so now without further ado, we can output the VisualWorks and ObjectStudio icons in PNG, PDF and SVG formats from Gizmo, eg:

Gizmos.CincomSmalltalkLogo openVisualWorks saveAsPNG: 'vw.png'.
Gizmos.CincomSmalltalkLogo openVisualWorks saveAsSVG: 'vw.svg'.
Gizmos.CincomSmalltalkLogo openVisualWorks saveAsPDF: 'vw.pdf'.
Gizmos.CincomSmalltalkLogo openObjectStudio saveAsPNG: 'os.png'.
Gizmos.CincomSmalltalkLogo openObjectStudio saveAsSVG: 'os.svg'.
Gizmos.CincomSmalltalkLogo openObjectStudio saveAsPDF: 'os.pdf'

And for those of you who couldn't be bothered loading up Gizmo to output these icons yourself, here are the icons I built with the script above:

VisualWorks: PNG, SVG, PDF

ObjectStudio: PNG, SVG, PDF

Read: Someone asked for a VW SVG icon?

Topic: Smalltalk Daily 9/11/07: Web APIs II Previous Topic   Next Topic Topic: Sixth Anniversary

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use