This library calculate contour level lines for a two-dimensional scalar field, based on the Marching Squares algorithm https://en.wikipedia.org/wiki/Marching_squares.
Construct a two-dimensial scalar field from a function
f : (Float,Float) -> Float
taking values in [0,1]x[0,1]Represent a point as (Float,Float)
Represent the discretization grid
Get the point, ithat is (x,y) coordinates, in the grid for a data index.
Construct a two-dimensial scalar field from a data in a list of values
Values are expected in the order of indices in the given grid,
running from min to max, incrementing the first component first.
Use pointAt to get (x,y) coordinates for an data index.Calculate contour lines for a given level
A line within a contour
Get a line's end points
Render SVG with contours for several levels of a grid function.
Draw contours for several levels of a grid function.
Draw a line as a traced path.
Draw contour for one level of a grid function.
Rendering style properties.
Default style.
Represent a two-dimensioal scalar field