drag-point.js

total 0
used 0
limit 0
/* files: ../point_src/core/head.js ../point_src/pointpen.js ../point_src/pointdraw.js ../point_src/setunset.js ../point_src/stroke.js ../point_src/point-content.js ../point_src/pointlist.js ../point_src/point.js ../point_src/events.js ../point_src/screenshot.js ../point_src/automouse.js ../point_src/distances.js ../point_src/bisector.js ../point_src/random.js ../point_src/dragging.js ../point_src/functions/clamp.js ../point_src/l.js ../point_src/protractor.js # ../point_src/text/alpha.js # ../point_src/text/label.js ../point_src/text/beta.js ../point_src/stage.js */ class MainStage extends Stage { canvas='playspace' // live=false live = true mounted(){ console.log('drag-point') this.spot = this.center.copy() this.spot.radius = 300 this.spot.rotation = random.int(360) this.dragging.addPoints(this.spot) } firstDraw(ctx) { ctx.strokeStyle = 'yellow' ctx.fillStyle = '#EEE' ctx.font = `400 16px inter`; ctx.textAlign = 'center' ctx.textBaseline = 'middle' } draw(ctx){ this.clear(ctx) // this.fps.drawFPS(ctx) this.drawCircles(ctx) ctx.fillStyle = '#EEE' this.drawIris(ctx) } drawCircles(ctx) { this.spot.pen.fill(ctx, '#333') this.spot.pen.indicator(ctx, { color: '#111'}) } drawIris(ctx) { /* The dynamic highlighter. */ this.dragging.drawAll(ctx) } } ;stage = MainStage.go();
Run
Meta Data
imports ()
files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/pointdraw.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/point-content.js', '../point_src/pointlist.js', '../point_src/point.js', '../point_src/events.js', '../point_src/screenshot.js', '../point_src/automouse.js', '../point_src/distances.js', '../point_src/bisector.js', '../point_src/random.js', '../point_src/dragging.js', '../point_src/functions/clamp.js', '../point_src/l.js', '../point_src/protractor.js', '# ../point_src/text/alpha.js', '# ../point_src/text/label.js', '../point_src/text/beta.js', '../point_src/stage.js')
unused_keys ('title',)
unknown_keys ()
filepath_exists True
path drag-point.js
filepath drag-point.js
clean_files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/pointdraw.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/relative-xy.js', '../point_src/pointcast.js', '../point_src/point.js', '../point_src/events.js', '../point_src/image-edge-detection.js', '../point_src/offscreen.js', '../point_src/screenshot.js', '../point_src/automouse.js', '../point_src/distances.js', '../point_src/bisector.js', '../point_src/random.js', '../point_src/protractor.js', '../point_src/text/beta.js', '../point_src/dragging.js', '../point_src/functions/clamp.js', '../point_src/l.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js')
markdown {'html': '', 'content': 'files:\n ../point_src/core/head.js\n ../point_src/pointpen.js\n ../point_src/pointdraw.js\n ../point_src/setunset.js\n ../point_src/stroke.js\n ../point_src/point-content.js\n ../point_src/pointlist.js\n ../point_src/point.js\n ../point_src/events.js\n ../point_src/screenshot.js\n ../point_src/automouse.js\n ../point_src/distances.js\n ../point_src/bisector.js\n ../point_src/random.js\n ../point_src/dragging.js\n ../point_src/functions/clamp.js\n ../point_src/l.js\n ../point_src/protractor.js\n # ../point_src/text/alpha.js\n # ../point_src/text/label.js\n ../point_src/text/beta.js\n ../point_src/stage.js'}