aethercowboy / SVGComic

Dynamic SVG-based Webcomic-generating JavaScript Engine
http://aethercowboy.github.com/SVGComic
Other
3 stars 1 forks source link

SVGComic

SVGComic is a Dynamic SVG-based Webcomic-generating JavaScript Engine.

USAGE

You include the svg-comic.js script into your SVG, add an onload="main(evt)" to your SVG tag, and then create a new SCRIPT block for your code. See the included sample for a suggested usage.

First, create the comic object:

var comic = new SVGComic(evt, {ARG : 'VALUE'});

Options include:

Then create panels:

comic.addPanel({ARG : 'VALUE'});

(This sets comic.panel to be the latest created panel).

Options include:

Then, create characters:

comic.panel.addCharacter({ARG : 'VALUE'});

(This sets panel.character to be latest created character).

Options include:

Then, when you're done creating panels and characters:

comic.draw();

(This isn't necessary, but usually catches anything I overlooked, unless I overlooked it...)

BUT WHY?

Why not?

TO DO

  1. Add dialogue