inkscape

Lovely Inkscape Graphics – Masagin by Farbrausch & Neuro

farbrausch/neuro masagin
Be sure to watch the video in HD

Oh boy... I totally forgot to post this. A year ago Farbrausch and Neuro (their site has been down for a while) made a nice real time invitation demo for Nvision 08 featuring gorgeous vector graphics, which were done with Inkscape.

Check the demo if you got a decent Windows machine. Otherwise (or if you're just a bit lazy) take a look at the video over at YouTube.

By the way if you'd like to save the video you can do that easily with the Video DownloadHelper extension for Firefox.

960.gs Templates for Inkscape

960gs logo
That's some shiny logo

CSS grid frameworks in a nutshell

There are various CSS grid frameworks, which try to make the life of front-end designers easier. There's YUI Grids, Blueprint, a bunch of other frameworks, and well, the 960 Grid System.

All those frameworks do their magic through non-semantic classes, which are added to your containers. While this sounds pretty bad, it actually isn't much of an issue in reality. Well, that is if you don't use those classes in your content. Fortunately there is very little reason to do so if you're using some kind of CMS – and if you aren't, you probably should.

Personally I happen to like the 960 one most. It's pretty minimalistic while offering enough flexibility. It's also shipped with a bunch of templates for Fireworks, Illustrator, Omni Giraffe, Photoshop, and Visio. Inkscape, however, was missing. It's time to fill that gap! :)

Inkscape - Color Blindness Extension V2

color blindness simulation in Inkscape
More accurate now

This is the updated extension for Inkscape which simulates 9 different types of vision. It's a color effect and therefore it can be found over at Effects->Color->Color Blindness after installation.

It still supports the same set of modes:

  • normal trichromatic color vision
  • protanopia red-green blindness (no red cones)
  • deutanopia red-green blindness (no green cones)
  • tritanopia blue-yellow blindness (no blue cones)
  • typical achromatopsia (no cones; rod monochromat)
  • protanomaly (anomalous red cones)
  • deutanomaly (anomalous green cones)
  • tritanomaly (anomalous blue cones)
  • atypical achromatopsia (low cones; cone monochromat)

Inkscape - Color Blindness Extension

color blindness simulation in Inkscape
9 kinds of vision

Update: There is a new version!

This is an extension for Inkscape which simulates 9 different types of vision. Again it's a color effect and therefore it can be found over at Effects->Color->Color Blindness after installation.

Supported modes:

  • normal trichromatic color vision
  • protanopia red-green blindness (no red cones)
  • deutanopia red-green blindness (no green cones)
  • tritanopia blue-yellow blindness (no blue cones)
  • typical achromatopsia (no cones; rod monochromat)
  • protanomaly (anomalous red cones)

Texturing with Inkscape

Ship A6
A low poly spaceship

Without net access there wasn't much to do. However, modeling was one of the few things I actually could do. Fortunately I had some recent version of Wings3D installed. A few futile attempts later I got something that looked alright. Semi-satisfied with my low poly (52 polygons, 104 edges, 54 vertices) spaceship I went ahead texturing it with Inkscape.

Since the intended rendering size is rather small there isn't a need for fine details. I also wanted to try some bold semi-futuristic look with a touch of military blandness. Using vectors seemed like the most natural choice. Hard vector edges also fit the flat shaded rendering a lot better.

Before I could start with the texturing I had to do the UV mapping first. UV mapping is a bit annoying in Wings3D, but it's alright for simple models. If you aren't familiar with the term: it's about which part of the texture goes where on the model.

inkscapec.exe - A Command Line Wrapper for Win32

Inkscape 0.46 is finally out of the door and there are builds for all platforms (well, the important ones) available. Unfortunately I wasn't able to get this little executable into the Win32 builds. If you've read my previous posts you might have an idea what it's all about.

In a nutshell it's a tiny console application, which spawns Inkscape (with the specified arguments) and captures its stdout (default output) and stderr (default error output) streams and redirects it to this console. It also does the same with stdin for good measure. It's sole purpose is direct command line interaction (and determining which actions trigger GTK warnings). If you want to spawn Inkscape from other programs/scripts use inkscape.exe instead.

So, with this little application we get something that behaves like a console build of Inkscape, which means that we actually get some feedback if we're using some command line switches. All that for a mere 21kb. For comparison: a separate Inkscape build would have added another 12.5mb.

Sun's Da Vinci Machine Gains Traction

Sun's MLVM aka "The Da Vinci Machine" caters for the needs of many compiled and interpreted languages. Since Sun already gathered a lot of expertise with the JVM it's going to be a sure hit. Reliability and performance will be equally excellent without a doubt. And of course it will also run Java.

Yesterday during his keynote at Sun Tech Days James Gosling announced that they hired Ted Leung (a long-time Python developer from OSAF) and Frank Wierzbicki (the lead implementer of the Jython project). Both are going to work full-time on Jython - an implementation of Python written in 100% pure Java.

How to Use Inkscape's Command Line Options on Win32 - Part 2

It can be also done without Python. D'oh. Here is the batch file:

@ECHO OFF
inkscape %* 2>&1>"%TEMP%.\console.txt"
TYPE "%TEMP%.\console.txt"
DEL "%TEMP%.\console.txt"

But it's sorta annoying that it needs a temporary file.

inkscape -e image.png drawing.svg 2>&1|more

For example works fine, but it adds that page feeding stuff. Using sort instead of more kind of works, but the output is of course sorted. Hum. I can't really believe that there isn't something which takes stdin and outputs it to stdout. Neither echo nor redirecting to con work. Did I overlook something obvious?

The best I could come up with is this batch:

@FOR /F "delims=" %%? IN ('inkscape %* 2^>^&1') DO @ECHO.%%?

It works as intended, but eats empty lines.

Update: See inkscapec.exe - A Command Line Wrapper for Win32 for a better solution.

How to Use Inkscape's Command Line Options on Win32

On Windows you won't have much fun with Inkscape's command line options. They do work just fine, but you won't see any feedback messages. While the messages are written to stdout and stderr, these streams aren't connected to anything. And all that eventually useful information is flushed down the virtual toilet.

(If you aren't interested in the details skip over to InkCL.bat usage and the zip package.)

That's just how things are with Windows - either spawn a cmd.exe window or get nothing. Getting some extra cmd window each time you use Inkscape would be a tad annoying, therefore the other option was chosen. Java solves it with two executables: java.exe and javaw.exe (where the former spawns a cmd window and the latter doesn't).

In Java's case they are tiny wrappers. Inkscape is a lot bigger tho, therefore that wouldn't be the smartest thing to do. ~6.7mb just for better command line support? Naaah. However, a tiny separate wrapper program, which just spawns Inkscape.exe as child process would work fine. Ultimately it's the best option and most likely the one we'll pick.

As a temporary solution for the time being you can use the following Python program. It hands the command line arguments over to Inkscape and grabs the stdout and stderr streams and prints 'em on screen.

Experimental SVG Compression

Introduction

silly diagramSVGs can be optimized for three different things. File size, rendering speed, and editing. For the most part you want to optimize for editing - especially with complex drawings. Towards the end you may want to lean toward the 2 other goals tho.

Optimizing for rendering speed is very interesting for devices with limited capabilities such as cellphones or PDAs. Things to keep an eye on are node counts, overdraw, clones, clipping, masking, gradients, and even simple stuff such as strokes. Nokia published some pretty decent guide (PDF) on this topic.

Optimizing for size shares a few aspects of the speed optimization. Keep the node count as low as possible, combine paths where possible... that kind of thing. However, you completely ignore overdraw, and you use clones/clipping/masking/stroke/gradients all over the place. It's certainly lot more entertaining than speed optimizations and it also won't affect editing speed that much. That's why I'll experiment with that.

Syndicate content