All Projects → sammycage → Lunasvg

sammycage / Lunasvg

Licence: mit
A standalone c++ library to create, animate, manipulate and render SVG files.

Programming Languages

cpp
1120 projects

Projects that are alternatives of or similar to Lunasvg

Svg
Fork of the ms svg library (http://svg.codeplex.com/)
Stars: ✭ 676 (+178.19%)
Mutual labels:  svg, dom
Html To Image
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
Stars: ✭ 595 (+144.86%)
Mutual labels:  svg, dom
Plain Draggable
The simple and high performance library to allow HTML/SVG element to be dragged.
Stars: ✭ 362 (+48.97%)
Mutual labels:  svg, dom
Elemental2
Type checked access to browser APIs for Java code.
Stars: ✭ 115 (-52.67%)
Mutual labels:  svg, dom
Elementx
⚡️ Functionally create DOM elements and compose them to a tree quickly
Stars: ✭ 62 (-74.49%)
Mutual labels:  svg, dom
Dompurify
DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
Stars: ✭ 8,177 (+3265.02%)
Mutual labels:  svg, dom
React Svg
🎨 A React component that injects SVG into the DOM.
Stars: ✭ 536 (+120.58%)
Mutual labels:  svg, dom
Onthefly
🔗 Generate TinySVG, HTML and CSS on the fly
Stars: ✭ 37 (-84.77%)
Mutual labels:  svg, dom
Dom To Svg
Library to convert a given HTML DOM node into an accessible SVG "screenshot".
Stars: ✭ 67 (-72.43%)
Mutual labels:  svg, dom
Svgdom
Straightforward DOM implementation to make SVG.js run headless on Node.js
Stars: ✭ 154 (-36.63%)
Mutual labels:  svg, dom
Charts
Simple, responsive, modern SVG Charts with zero dependencies
Stars: ✭ 14,112 (+5707.41%)
Mutual labels:  svg
Svg Credit Card Payment Icons
SVG Credit Card & Payment Icons: 6 Styles, 80 Icons
Stars: ✭ 227 (-6.58%)
Mutual labels:  svg
Skrape.it
A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.
Stars: ✭ 231 (-4.94%)
Mutual labels:  dom
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (-2.47%)
Mutual labels:  svg
React Kawaii
Cute SVG React Components
Stars: ✭ 2,709 (+1014.81%)
Mutual labels:  svg
Spongedown
Markdown with svg bob support
Stars: ✭ 234 (-3.7%)
Mutual labels:  svg
Lite Virtual List
Virtual list component library supporting waterfall flow based on vue
Stars: ✭ 223 (-8.23%)
Mutual labels:  dom
Angular Ru Interview Questions
Вопросы на собеседовании по Angular
Stars: ✭ 224 (-7.82%)
Mutual labels:  dom
Parse
Go parsers for web formats
Stars: ✭ 224 (-7.82%)
Mutual labels:  svg
Term Sheets
Create animated terminal presentations. Export as SVG, animated GIF, or HTML+CSS
Stars: ✭ 243 (+0%)
Mutual labels:  svg

lunasvg

lunasvg is a standalone c++ library to create, animate, manipulate and render SVG files.

svg2png generated PNG

example

#include <lunasvg/svgdocument.h>

using namespace lunasvg;

int main()
{
    SVGDocument document;
    document.loadFromFile("tiger.svg");
    
    Bitmap bitmap = document.renderToBitmap();
    
    // do something useful with the bitmap.
    
    return 0;
}

features

  • Basic Shapes : rect, circle, ellipse, line, polyline, polygon, path.
  • Paint Servers : solidColor, linearGradient, radialGradient, pattern.
  • Clipping, Masking and Compositing : clipPath, mask, group opacity.
  • Document Structures: defs, svg, g, use, symbol.
  • Coordinate Systems, Transformations and Units.
  • Markers.
  • Texts.
  • Animations (TODO)
  • Filters (TODO)
  • Image (TODO)
  • StyleSheet (TODO)

build

Create a build directory.

mkdir build

Run cmake command inside build directory.

cd build
cmake ..

Run make to build lunasvg.

make -j 2

To install lunasvg library.

make install

demo

While building lunasvg example it generates a simple SVG to PNG converter which can be used to convert SVG file to PNG file.

Run Demo.

svg2png [filename] [resolution] [bgColor]

support

If you like the work lunasvg is doing please consider a small donation:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].