Source Academy Modules
    Preparing search index...

    Function draw_connected_2d

    • 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.

      Parameters

      • numPoints: number

      Returns CurvePlotFunction

      function of type Curve → Drawing

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