Macoy Madson
5d01ca80ec
Fix Line endidngs, add my copyright
4 months ago
Mikko Mononen
cc6c08d3a8
Restore example2 test file
2 years ago
Mikko Mononen
ddd39e9669
Fix for #185
- prevent infinite loop when gradient ID is left to empty string
- prevent infinite loop when gradient references to self
- lookup up to 32 references back
2 years ago
Mikko Mononen
7efce85328
Better support for coordinates, fixes local space percentage gradients
- fixed zero check in form inverse (was producing NaNs
- improved coordinate parsing
- handle gradient percentage coords properly
7 years ago
jry2
b3dc3e6543
Fixed VC2015 RC warnings.
-possible loss of data while conversions
-potentially uninitialized local variables
-declaration hides previous local declaration
8 years ago
Mikko Mononen
5966d6e77a
Handle fill rule properly
- added parser for fill rule
- added even-odd fill rule support for rasteriser
8 years ago
Mikko Mononen
c4f15e8f2f
Restore example filename
8 years ago
Mikko Mononen
205d5197d2
Issue #20 : better handling of miter joins
- better handling if stroke miter joins (inner bevel)
- correct default miter 4
8 years ago
Mikko Mononen
cd0a2029fa
First stab at line rendering
- added tessellation and rendering of lines
- added parsing for line joins and caps
8 years ago
Mikko Mononen
c53c48759d
Added typedefs to structs
- typedef’d structs
- added named parameters
9 years ago
Mikko Mononen
1acb9f0c9b
Fixed issue #11
- fixed compiler warnings
- supper single and double quotes
9 years ago
Mikko Mononen
135a658741
Added viewBox and unit coversion support
- added exact bounds calculation for bezier curves, paths, shapes
- added unit coversion for svg length values (use px internally)
- added viewBox and preserveAspectRatio handling
- removed some test SVGs
9 years ago
Mikko Mononen
b3f906a393
Updated documentation
9 years ago
Mikko Mononen
8e47686015
Added pool alloc for active edges, improved tesselation algo, better guessing of image size
- added pool alloc for active edges
- improved tesselation algo
- better guessing of image size
- reverted tiger to default state
9 years ago
Mikko Mononen
ad2841fccb
Changed struct names, fixed color parser bug and added rasterizer
- changed struct names from NSVGShape to NSVGshape
- fixed silly bug in color parser (plus reversed the r/b)
- changed the shape order so that they are in order they are parsed
- added super simple svg rasterizer based on stb_truetype rasterizer
- added example for the rasterizer
9 years ago
Mikko Mononen
297c2d5252
Fixed issue #3
- added missing break after 'm'/'M' path command
- path command 'm'/'M' is converted to 'l'/'L' so that multiple
coordinate pairs behave correctly
- fixed rendering of first point on path
9 years ago
Jetro Lauha
9ea087a788
removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return
9 years ago
Jetro Lauha
c7baafd493
fixed bunch of VS2010 warnings/errors (when compiled as C code)
9 years ago
Mikko Mononen
572bbb2d4d
Changed the structure of returned SVG data to image, shapes and paths
- Needed support to SVG image size, hence added following:
- added NSVGImage, which holds image size and list of shapes
- added NSVGShape which holds color/store and list of paths
9 years ago
Mikko Mononen
e4f10ab851
Initial commit.
9 years ago