line-example.js

total 0
used 0
limit 0
/* --- title: Line class example files: ../point_src/math.js head point pointlist dragging mouse stage dragging stroke ../point_src/curve-extras.js */ class MainStage extends Stage { canvas='playspace' mounted(){ let lpoints = [new Point(100, 100), new Point(500, 100)] this.line = new Line(...lpoints) this.dragging.add(...lpoints) } draw(ctx){ this.clear(ctx) this.line.render(ctx, {color: 'red'}) } } ;stage = MainStage.go();
Run
Meta Data
title Line class example
imports ()
files ('../point_src/math.js', 'head', 'point', 'pointlist', 'dragging', 'mouse', 'stage', 'dragging', 'stroke', '../point_src/curve-extras.js')
unused_keys ()
unknown_keys ()
filepath_exists True
path line-example.js
filepath line-example.js
clean_files ('../point_src/math.js', '../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/compass.js', '../point_src/center.js', '../point_src/point-content.js', '../point_src/pointdraw.js', '../point_src/relative-xy.js', '../point_src/pointcast.js', '../point_src/point.js', '../point_src/pointlistdraw.js', '../point_src/pointlistgradient.js', '../point_src/pointlistshape.js', '../point_src/pointlistgenerator.js', '../point_src/unpack.js', '../point_src/pointlist.js', '../point_src/pointlistpen.js', '../point_src/functions/clamp.js', '../point_src/distances.js', '../point_src/protractor.js', '../point_src/text/beta.js', '../point_src/dragging.js', '../point_src/events.js', '../point_src/automouse.js', '../point_src/stage-hooks.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/curve-extras.js')
markdown {'html': '', 'content': '---\ntitle: Line class example\nfiles:\n ../point_src/math.js\n head\n point\n pointlist\n dragging\n mouse\n stage\n dragging\n stroke\n ../point_src/curve-extras.js'}