Point Pen

<script src="./point_src/pointpen.js"></script>

The pen provides a range of methods for visibly rendering the point.

Similar to how the draw tools plot or sketch, the pen renders the sketches. This allows you to draw many things and then pen the drawing.

The available functions generally match the draw tools and in many cases use the sibling function from the draw tools:

let p = new Point(100, 200)

p.pen.fill('red') // Calls p.draw.arc() then ctx.fill()

When imported, the PointPen auto-loads into the Point.pen.

Polypoint.head.lazyProp('Point', {
    pen() { return new PointPen(this) }
}, 'pen')

let p = new Point;
p.pen // new instance of PointPen
Meta Data
title Point Pen
dependencies ()
unused_keys ()
unknown_keys ()
filepath_exists True
path pointpen.js
filepath pointpen.js
clean_files ()

Method List

comment.html|safe
comment.html|safe
  • method_kind

    method_name

    (
    param_name = param.default_value ,
    )
    from class_name
    comment.html|safe
    comment.html|safe