diff options
author | Mikko Mononen <memon@inside.org> | 2014-01-31 01:33:41 +0400 |
---|---|---|
committer | Mikko Mononen <memon@inside.org> | 2014-01-31 01:33:41 +0400 |
commit | 47864e21bc48e44cff8ffee02cb97d4a4eae0dfa (patch) | |
tree | 9b7718731fe9fb5d9241fa0f0c93739ab83a2723 /README.md | |
parent | 135a658741655f1e022ba6b7988d8c2ffdebb407 (diff) |
Added gradients
- renamed NSVGParser to NSVGparser
- first stab at parsing gradients
- first stab at rendering gradients
- fixed overflow in rasterizer
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -55,10 +55,11 @@ nsvgDelete(image); In order to use NanoSVG in your own project, just copy nanosvg.h to your project. In one C/C++ define `NANOSVG_IMPLEMENTATION` before including the library to expand the NanoSVG implementation in that file. -NanoSVG depends on `stdio.h` and `math.h`, they should be included where the implementation is expanded before including NanoSVG. +NanoSVG depends on `stdio.h` ,`string.h` and `math.h`, they should be included where the implementation is expanded before including NanoSVG. ``` C #include <stdio.h> +#include <string.h> #include <math.h> #define NANOSVG_IMPLEMENTATION // Expands implementation #include "nanosvg.h" @@ -68,6 +69,7 @@ By default, NanoSVG parses only the most common colors. In order to get support ``` C #include <stdio.h> +#include <string.h> #include <math.h> #define NANOSVG_ALL_COLOR_KEYWORDS // Include full list of color keywords. #define NANOSVG_IMPLEMENTATION // Expands implementation |