promotional bannermobile promotional banner

LibSVG-1.0

Abandoned
SVG Render-bender
<p>Render of <a href="http://wiki.yoyogames.com/images/3/35/Tux.svg" rel="nofollow">http://wiki.yoyogames.com/images/3/35/Tux.svg</a><br>
Considering the shortcomings of LibSVG's gradient mechanism, I think this worked out well.<br>
I've also noticed th...

Render of http://wiki.yoyogames.com/images/3/35/Tux.svg
Considering the shortcomings of LibSVG's gradient mechanism, I think this worked out well.
I've also noticed th...

<p>Now, in revision 22, it's the Happy Cat!</p>

Now, in revision 22, it's the Happy Cat!

<p>Render of <a href="http://www.wine-doors.org/svn/wine-doors/trunk/pixmaps/wow.svg" rel="nofollow">http://www.wine-doors.org/svn/wine-doors/trunk/pixmaps/wow.svg</a> with LibSVG-1.0 rev. 36<br>
Gradients is not LibSVG's strong side, as it's a bitch to...

Render of http://www.wine-doors.org/svn/wine-doors/trunk/pixmaps/wow.svg with LibSVG-1.0 rev. 36
Gradients is not LibSVG's strong side, as it's a bitch to...

<p>A trace test of the anime wallpaper with different quality settings</p>

A trace test of the anime wallpaper with different quality settings

<p>LibSVG-1.0 passed the W3C compliance test for transformations, huzzah!
This is a screenshot from the compliance test rendered in Rendermon with LibSVG-1.0 rev. 38</p>

LibSVG-1.0 passed the W3C compliance test for transformations, huzzah! This is a screenshot from the compliance test rendered in Rendermon with LibSVG-1.0 rev. 38

<p>This is the original idea behind making LibSVG :3 Awesome strategic graphics that'll blow you away!</p>

This is the original idea behind making LibSVG :3 Awesome strategic graphics that'll blow you away!

<p>Test rendering of <a href="http://croczilla.com/bits_and_pieces/svg/samples/tiger/tiger.svg" rel="nofollow">http://croczilla.com/bits_and_pieces/svg/samples/tiger/tiger.svg</a> using LibSVG-1.0 rev. 35</p>

Test rendering of http://croczilla.com/bits_and_pieces/svg/samples/tiger/tiger.svg using LibSVG-1.0 rev. 35

Description

LibSVG is a library for rendering and, to some extent, manipulation of Scalable Vector Graphics in WoW. If you're just interested in trying out LibSVG without having to implement it in an addon first, try RenderMon!

Element support:

  • Objects:
    • rect
    • circle
    • ellipse
    • polygon
    • polyline
    • line (via polyline)
    • path (A/a, C/c, L/l, M/m, S/s, Q/q, Z/z)
  • Transformations
    • Matrix(a,b,c,d,e,f)
    • Translate(x[, y])
    • Scale(x[, y])
    • Rotate(angle[, cx, cy])
    • SkewX(angle)
    • SkewY(angle)
  • Styles:
    • stroke (name of color or #rgb, #rrggbb, rgb(rrr,ggg,bbb) )
    • stroke-width (in pixels)
    • stroke-opacity
    • fill (name of color or #rgb, #rrggbb, rgb(rrr,ggg,bbb) )
    • fill-opacity
    • linear gradients (only basic support)

Usage

local libsvg = LibStub("LibSVG-1.0");
local myImage = libsvg:New();
myImage:Parse("xml data as a string");
-- or you could use:
-- local xml = LibXML:Import("xml data here");
-- myImage:Parse(xml);
myImage:Compile(); -- Compiles the SVG into texture commands for drawing
local frame = myImage:Render(); -- Renders the compiled image and returns the canvas frame.

The LibSVG-1.0 Team

profile avatar
  • 19
    Projects
  • 94.4K
    Downloads
Donate

More from humbedoohView all

  • Doodlepad project image

    Doodlepad

    • 21.5K
    • Addons

    It's a doodle pad for doodling with doodles.

    • 21.5K
    • November 14, 2013
    • Addons
    • +3
  • Gnomexcel project image

    Gnomexcel

    • 7.1K
    • Addons

    Gnomish math at its best!

    • 7.1K
    • November 14, 2013
    • Addons
    • +3
  • LibXML-1.0 project image

    LibXML-1.0

    • 8.9K
    • Addons

    XML import library

    • 8.9K
    • November 5, 2013
    • Addons
    • +1
  • LibMath project image

    LibMath

    • 3.4K
    • Addons

    Extended math library for Lua

    • 3.4K
    • November 5, 2013
    • Addons
    • +1
  • Doodlepad project image

    Doodlepad

    • 21.5K
    • Addons

    It's a doodle pad for doodling with doodles.

    • 21.5K
    • November 14, 2013
    • Addons
    • +3
  • Gnomexcel project image

    Gnomexcel

    • 7.1K
    • Addons

    Gnomish math at its best!

    • 7.1K
    • November 14, 2013
    • Addons
    • +3
  • LibXML-1.0 project image

    LibXML-1.0

    • 8.9K
    • Addons

    XML import library

    • 8.9K
    • November 5, 2013
    • Addons
    • +1
  • LibMath project image

    LibMath

    • 3.4K
    • Addons

    Extended math library for Lua

    • 3.4K
    • November 5, 2013
    • Addons
    • +1