Function draw_connected_full_view_proportional

  • Returns a function that turns a given Curve into a Drawing, by sampling the Curve at num sample points and connecting each pair with a line. The Drawing is translated and scaled proportionally to show the full curve and maximize its size, with some padding.

    Parameters

    • numPoints: number

    Returns RenderFunction

    function of type Curve → Drawing

    Example

    draw_connected_full_view_proportional(100)(t => make_point(t, t));