mirror-one-point.js

total 0
used 0
limit 0
/* categories: reflections files: head stroke pointlist point mouse dragging ../point_src/functions/clamp.js ../point_src/mirror.js stage */ class MainStage extends Stage { canvas='playspace' mounted(){ this.points = new PointList( new Point({x:406, y:76, radius: 20}) , new Point({x:145, y:397, radius: 20}) ) this.dragging.addPoints(...this.points, this.center) /* Apply the start and end points of the mirror. */ this.mirror = new Mirror(this.points) /* Add things to reflect in the mirror */ this.mirror.add(this.center) } draw(ctx){ this.clear(ctx) /* Must be called at some point to update the mirror points. */ this.mirror.step(); /* Draw the optional contents of the mirror */ this.mirror.draw(ctx); this.center.pen.indicator(ctx, {color:'green'}) this.dragging.drawIris(ctx) } } ;stage = MainStage.go();
Run
Meta Data
imports ()
files ('head', 'stroke', 'pointlist', 'point', 'mouse', 'dragging', '../point_src/functions/clamp.js', '../point_src/mirror.js', 'stage')
unused_keys ('title',)
unknown_keys ('categories',)
categories ['reflections']
filepath_exists True
path mirror-one-point.js
filepath mirror-one-point.js
clean_files ('../point_src/core/head.js', '../point_src/setunset.js', '../point_src/stroke.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/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/events.js', '../point_src/automouse.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/mirror.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js')
markdown {'html': '', 'content': 'categories: reflections\nfiles:\n head\n stroke\n pointlist\n point\n mouse\n dragging\n ../point_src/functions/clamp.js\n ../point_src/mirror.js\n stage'}