Source Academy Modules
    Preparing search index...

    Function draw_points_full_view

    • 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 stretched/shrunk to show the full curve and maximize its width and height, with some padding.

      Parameters

      • numPoints: number

      Returns RenderFunction

      function of type Curve → Drawing

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

    Properties

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