Source Academy Modules
    Preparing search index...

    Function draw_points

    • 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 parts between (0,0) and (1,1) of the resulting Drawing are shown in the window.

      Parameters

      • numPoints: number

      Returns RenderFunction

      function of type Curve → Drawing

      draw_points(100)(t => make_point(t, t));
      
    Index

    Properties

    scaleMode: ScaleMode
    drawMode: DrawMode
    space: CurveSpace
    isFullView: boolean