All Projects → sammycage → Plutosvg

sammycage / Plutosvg

Licence: mit
Tiny SVG rendering library in C

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Plutosvg

Svgren
📷 SVG rendering library in C++
Stars: ✭ 136 (-8.72%)
Mutual labels:  svg
Alien.js
Future web pattern
Stars: ✭ 141 (-5.37%)
Mutual labels:  svg
Svglite
A lightweight svg graphics device for R
Stars: ✭ 143 (-4.03%)
Mutual labels:  svg
Styled Icons
💅 Popular icon packs like Font Awesome, Material Design, and Octicons, available as React Styled Components
Stars: ✭ 1,878 (+1160.4%)
Mutual labels:  svg
Ijsvg
MacOS SVG rendering and exporting library
Stars: ✭ 139 (-6.71%)
Mutual labels:  svg
Pyecharts Snapshot
renders the output of pyecharts as png, jpeg, gif, svg, eps, pdf and raw base64
Stars: ✭ 142 (-4.7%)
Mutual labels:  svg
React Content Loader
⚪ SVG-Powered component to easily create skeleton loadings.
Stars: ✭ 11,830 (+7839.6%)
Mutual labels:  svg
Gantt
Gantt chart library using jsx support SVG, Canvas and SSR
Stars: ✭ 148 (-0.67%)
Mutual labels:  svg
Plutovg
Tiny 2D vector graphics library in C
Stars: ✭ 141 (-5.37%)
Mutual labels:  svg
Htmlrenderer
C# HTML Layout and HTML Rendering Engine
Stars: ✭ 143 (-4.03%)
Mutual labels:  svg
Glyphs
A dynamic design system for managing large icon sets in Figma and using them on the web
Stars: ✭ 140 (-6.04%)
Mutual labels:  svg
Svglib
Read SVG files and convert them to other formats.
Stars: ✭ 139 (-6.71%)
Mutual labels:  svg
Myvuetest
预览链接为前几个commits,感兴趣的可以回退下。
Stars: ✭ 143 (-4.03%)
Mutual labels:  svg
Svg
Useful SVGs
Stars: ✭ 137 (-8.05%)
Mutual labels:  svg
Svg Banners
Styled banners for your Readme made with html/css in SVG !!
Stars: ✭ 145 (-2.68%)
Mutual labels:  svg
Flowchart Vue
flowchart的vue版本
Stars: ✭ 136 (-8.72%)
Mutual labels:  svg
Drawbot
Drawing robot capable of rendering SVG paths over WebSockets. Powered by a Raspberry Pi running Node.js.
Stars: ✭ 142 (-4.7%)
Mutual labels:  svg
Flow View
is a visual editor for Dataflow programming
Stars: ✭ 148 (-0.67%)
Mutual labels:  svg
Vivid
a JavaScript library which is built to easily customize and use the SVG Icons with a blaze.
Stars: ✭ 1,797 (+1106.04%)
Mutual labels:  svg
Coreui Icons
CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
Stars: ✭ 1,813 (+1116.78%)
Mutual labels:  svg

PlutoSVG

plutosvg is a tiny SVG rendering library in C

Features

  • Basic Shapes : rect, circle, ellipse, line, polyline, polygon, path
  • Paint Servers : solidColor, linearGradient, radialGradient, pattern(TODO)
  • Document Structures: defs, svg, g, use, symbol
  • Texts (TODO) : text, tspan, tref
  • Image (TODO)

Example

#include <plutosvg.h>

#include <stdlib.h>
#include <stdio.h>

int main(void)
{
    plutovg_surface_t* surface = plutosvg_load_from_file("camera.svg", NULL, 0, 0, 96.0);
    if(surface == NULL)
    {
        printf("Load failed\n");
        return -1;
    }

    plutovg_surface_write_to_png(surface, "camera.png");
    plutovg_surface_destroy(surface);
    return 0;
}

output :

camera.png

Build

Install cmake if not already installed

git clone --recursive https://github.com/sammycage/plutosvg.git
cd plutosvg
mkdir build
cd build
cmake ..
make

Support

If you like what we do, you can buy us a coffee

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].