plutovg

Tiny 2D vector graphics library for C with rendering capabilities.

brewmacoslinux
Try with needOr install directly
Source

About

Tiny 2D vector graphics library in C

Examples

draw shapes and lines in C applications$ gcc -c myprogram.c -I$(brew --prefix plutovg)/include && gcc myprogram.o -L$(brew --prefix plutovg)/lib -lpluovg -o myprogram
render SVG-like graphics with C code$ cat > example.c << 'EOF' #include <plutovg.h> int main() { plutovg_surface_t* surface = plutovg_surface_create(256, 256); plutovg_t* vg = plutovg_create(surface); plutovg_set_fill_color(vg, 1, 0, 0, 1); plutovg_rect(vg, 10, 10, 100, 100); plutovg_fill(vg); plutovg_surface_write_to_png(surface, "output.png"); return 0; } EOF
create vector graphics without external dependencies$ pkg-config --cflags --libs plutovg
embed graphics rendering in C programs$ brew info plutovg && cat $(brew --prefix plutovg)/share/doc/plutovg/README.md
compile with vector graphics library$ gcc program.c -o program $(pkg-config --cflags --libs plutovg)