band-one.js

total 0
used 0
limit 0
/* --- title: Directional Tangent 5 categories: tangents bisector raw files: head stroke ../point_src/point-content.js pointlist point ../point_src/tangents.js ../point_src/bisector.js ../point_src/math.js ../point_src/split.js mouse dragging ../point_src/functions/clamp.js stage ../point_src/tangents.js ../point_src/text/beta.js --- Another loopy. */ class MainStage extends Stage { canvas='playspace' mounted(){ this.points = new PointList( {x:100, y:230, radius: 30} ,{x:200, y:90, radius: 20} // ,{x:300, y:240, radius: 20, isFlipped: true} // ,{x:340, y:640, radius: 30} ,{x:530, y:270, radius: 30} ,{x:440, y:440, radius: 30} ).cast(); this.dragging.addPoints(...this.points) } draw(ctx){ this.clear(ctx) this.points.pen.indicators(ctx) // this.points.pen.line(ctx) // this.points.last().pen.line(ctx, this.points[0]) let stips = new PointList; this.points.siblings(1).forEach((ps,i)=>{ ps[1].lookAt(ps[0]) let a = ps[1].project() ps[0].lookAt(ps[1]) let b = ps[0].project() stips.push(b) stips.push(a) }) stips.pen.indicators(ctx) stips.pen.quadCurve(ctx,{ loop: 1}) } } ;stage = MainStage.go();
Run
Meta Data
title Directional Tangent 5
imports ()
files ('head', 'stroke', '../point_src/point-content.js', 'pointlist', 'point', '../point_src/tangents.js', '../point_src/bisector.js', '../point_src/math.js', '../point_src/split.js', 'mouse', 'dragging', '../point_src/functions/clamp.js', 'stage', '../point_src/tangents.js', '../point_src/text/beta.js')
unused_keys ()
unknown_keys ('categories',)
categories ['tangents', 'bisector', 'raw']
filepath_exists True
path band-one.js
filepath band-one.js
clean_files ('../point_src/core/head.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/compass.js', '../point_src/center.js', '../point_src/point-content.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/pointpen.js', '../point_src/pointdraw.js', '../point_src/relative-xy.js', '../point_src/pointcast.js', '../point_src/point.js', '../point_src/tangents.js', '../point_src/bisector.js', '../point_src/math.js', '../point_src/functions/clamp.js', '../point_src/split.js', '../point_src/events.js', '../point_src/automouse.js', '../point_src/distances.js', '../point_src/protractor.js', '../point_src/text/beta.js', '../point_src/dragging.js', '../point_src/stage-hooks.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js')
markdown {'html': '<p>Another loopy.</p>', 'content': '---\ntitle: Directional Tangent 5\ncategories: tangents\n bisector\n raw\nfiles:\n head\n stroke\n ../point_src/point-content.js\n pointlist\n point\n ../point_src/tangents.js\n ../point_src/bisector.js\n ../point_src/math.js\n ../point_src/split.js\n mouse\n dragging\n ../point_src/functions/clamp.js\n stage\n ../point_src/tangents.js\n ../point_src/text/beta.js\n---\n\nAnother loopy.'}