Get an Epic Experience with Premium

LibSVG-1.0

Libraries Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 1 Monthly Downloads
  • Supports:
  • 128 Total Downloads
  • Updated 09/24/2010
  • Created 09/24/2010
  • 0 Favorites
  • Project Site
  • Comments
  • Release Type: Alpha
  • License: Apache License version 2.0
Support development! **
Donate

About LibSVG-1.0

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.

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

SteelSeries Warlords Prize Pack Giveaway