Giter VIP home page Giter VIP logo

will2svg's Introduction

WILL to SVG

Python program that reads Wacom WILL file and converts it to SVG.

The WILL file is the file that contains the most accurate data of drawings made in Wacom products (in my example, the Bamboo slate). Although the Wacom app (Incspace) exports to SVG format, it represents the strokes as closed polygons. If you, for example, draw a straight line in the tablet, the SVG won't have a single path line, but instead a closed shape with the width of the stroke strength that you used to draw the line.

For several applications, what matters is the path traced by the pen and the strokes widths along that path. That information IS present in the WILL file but, as mentioned before, not in the exported SVG. Hence, this program reads the WILL file and save an SVG with each path as each stroke given in the tablet. For now the program ignores the stroke width (or pen pressure) simply because the SVG format do not seems to support it. But it reads that information from the WILL file, so it is very easy to incorporate into the SVG.

The information contained in the SVG can be used to, for instance, make stop-motions of the drawings in the tablet, since it have the stroke positions in the same order it was given in the tablet. Another thing is that we can now pos-process the draw. For instance change stroke widths, close strokes, etc...

Software

  • Wacom Inkspace

Hardware

  • Wacom Bamboo Slate (drawing tablet)

Screen-shoots

Sample

img1

Wacom problem

Instructions

Usage: will_reader.py [filename] where filename is the name of the WILL file without the extension.

Obs.: the file.svg will be overitten

will2svg's People

Contributors

martinsallandm avatar v217 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.