paperquilts.js

total 0
used 0
limit 0
/* title: Will be PaperQuilts logo. files: head point stage mouse dragging pointlist ../point_src/split.js ../point_src/json.js stroke --- */ addButton('point', { onclick() { stage.aPush(new Point(100, 100)) } }) class MainStage extends Stage { canvas = 'playspace' mounted() { this.point = this.center.copy().update({radius: 100}) // this.dragging.add(this.point) this.a = new PointList( [247,328,5,0] ,[383,316,5,0] ,[391,239,5,0] ,[261,163,5,0] ,[117,430,5,0] ,[225,657,5,0] ,[286,623,5,0] ,[227,397,5,0] ).cast() } onClick(ev) { this.aPush(Point.from(ev)) } aPush(p) { this.a.push(p) this.dragging.add(p) } draw(ctx){ this.clear(ctx) let p = this.point // p.pen.indicator(ctx, {color: '#444'}) this.a.pen.indicator(ctx, {color: 'pink'}) // this.a.splitInner(10).indicator(ctx, {color: 'pink'}) this.a.pen.quadCurve(ctx, {color: '#999'}) // let r = p.radians + (Math.PI/4) // p.pen.ngon(ctx, 3, p.radius, 1, '#880000', 2, p.radians) // p.pen.box(ctx, p.radius, 'red', 2, r) // this.point.pen.box(ctx, this.point.radius, 'red', 2, r) } } stage = MainStage.go(/*{ loop: true }*/)
Run
Meta Data
title Will be PaperQuilts logo.
imports ()
files ('head', 'point', 'stage', 'mouse', 'dragging', 'pointlist', '../point_src/split.js', '../point_src/json.js', 'stroke')
unused_keys ()
unknown_keys ()
filepath_exists True
path paperquilts.js
filepath paperquilts.js
clean_files ('../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/stage-hooks.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.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/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/split.js', '../point_src/json.js', '../point_src/setunset.js', '../point_src/stroke.js')
markdown {'html': '', 'content': 'title: Will be PaperQuilts logo.\nfiles:\n head\n point\n stage\n mouse\n dragging\n pointlist\n ../point_src/split.js\n ../point_src/json.js\n stroke\n---'}