Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/memononen/nanosvg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Mononen <memon@inside.org>2014-01-31 01:33:41 +0400
committerMikko Mononen <memon@inside.org>2014-01-31 01:33:41 +0400
commit47864e21bc48e44cff8ffee02cb97d4a4eae0dfa (patch)
tree9b7718731fe9fb5d9241fa0f0c93739ab83a2723 /README.md
parent135a658741655f1e022ba6b7988d8c2ffdebb407 (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.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9aa9a3f..a672d6f 100644
--- a/README.md
+++ b/README.md
@@ -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