Function draw_points_full_view_proportional

  • Returns a function that turns a given Curve into a Drawing, by sampling the Curve at num sample points. The Drawing consists of isolated points, and does not connect them. The Drawing is translated and scaled proportionally with its size maximized to fit entirely inside the window, with some padding.

    Parameters

    • numPoints: number

    Returns RenderFunction

    function of type Curve → Drawing

    Example

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