Static methods for encoding Render result
as .svg (scalable vector graphics) files, with various options
to choose from for different use cases.
Static methods
staticgradients(render:Render, acc:Float = 1):String
Render fine gradated strokes, fully visualizing properties of apparent ridges. Produces nice looking image, but not suitable as intermediate format for other hardware/softwares.
Parameters:
render | The renderer object |
|---|---|
acc | Accuracy, affects the number of tiny segments to use for simulating gradients |
Returns:
the SVG string
staticlines(render:Render, useOpacity:Bool = true):String
Use SVG <line> element to encode each segment from Render.lines.
Parameters:
render | The renderer object |
|---|---|
useOpacity | Whether to map opacity encoded in |
Returns:
the SVG string
staticpolylines(render:Render, colorful:Bool = false):String
Use SVG <polyline> element to draw the connected polylines
from Render.polylines. This is more suitable for use with plotters.
Parameters:
render | The renderer object |
|---|---|
useOpacity | Whether to color each polyline with a random color ("debug" option for visually distinguishing the polylines) |
Returns:
the SVG string