NanoSVG + OCaml bindings
  • OCaml 70.1%
  • C 29.4%
  • Makefile 0.4%
Find a file
2023-12-24 14:55:12 +01:00
example Import a modified nanosvg.h that handles text nodes; update bindings accordingly 2022-12-09 14:31:31 +01:00
lib enable all color keywords 2023-12-24 01:29:20 +01:00
lib_text update dune-project 2023-01-23 16:01:32 +01:00
tests fix testing setup 2023-01-23 16:25:20 +01:00
vendor Import a modified nanosvg.h that handles text nodes; update bindings accordingly 2022-12-09 14:31:31 +01:00
.gitignore .gitignore 2022-09-21 15:17:52 +02:00
CHANGES reformat CHANGES 2023-01-27 16:37:58 +01:00
dune-project update nanosvg.opam 2023-01-27 13:16:10 +01:00
LICENSE typo 2023-12-23 17:53:29 +01:00
Makefile add a basic test 2022-10-01 11:06:40 +02:00
nanosvg.opam .opam: fix dependency on ocaml 2023-01-27 16:35:31 +01:00
nanosvg_text.opam fix generated .opam files 2023-01-24 10:19:35 +01:00
README.md update README 2022-11-02 10:49:27 +01:00
VENDOR.md document the provenance of the vendored nanosvg.h 2023-12-24 14:55:12 +01:00

OCaml bindings to Nano SVG

Nano SVG is a simple single-header SVG parser and rasterizer.

This library implements OCaml bindings to NanoSVG while vendoring the C implementation, thus providing a standalone OCaml library.

Example program

See example/example1.ml. Building it additionally requires tsdl to be installed.

opam install tsdl

make example
# or
dune exec -- example/example1.exe example/23.svg