Curvy  8.3.0
SplineSvgConverter Class Reference

Detailed Description

Converts SVG strings to splines

Static Public Member Functions

static List< SerializedCurvySplineSvgToSerializedSplines ([NotNull] string svg, bool invertY=true)
 Converts an SVG string to an array of instances of SerializedCurvySpline More...
 
static CurvySpline SvgToSpline (string svg, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global)
 Converts an SVG string to a spline More...
 
static CurvySpline[] SvgToSplines (string svg, CurvySerializationSpace coordinatesSpace=CurvySerializationSpace.Global)
 Converts an SVG string to an array of splines More...
 

Member Function Documentation

static List<SerializedCurvySpline> SvgToSerializedSplines ( [NotNull] string  svg,
bool  invertY = true 
)
static

Converts an SVG string to an array of instances of SerializedCurvySpline

Parameters
svgThe SVG to deserialize
invertYInverts the Y coordinates to match unity's Y axis
static CurvySpline SvgToSpline ( string  svg,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global 
)
static

Converts an SVG string to a spline

Parameters
svgThe SVG to deserialize
coordinatesSpaceHow to interpret the coordinates in the SVG: local ones or global ones?
static CurvySpline [] SvgToSplines ( string  svg,
CurvySerializationSpace  coordinatesSpace = CurvySerializationSpace.Global 
)
static

Converts an SVG string to an array of splines

Parameters
svgThe SVG to deserialize
coordinatesSpaceHow to interpret the coordinates in the SVG: local ones or global ones?

The documentation for this class was generated from the following file: