ellipse-example-2.js

total 0
used 0
limit 0
/* categories: simple ellipse files: head stroke pointlist point mouse dragging stage --- */ class MainStage extends Stage { canvas='playspace' mounted(){ this.pointA = new Point(200,200, 100, 0) this.start = new Point(200,200, 50, 20) this.end = new Point(200,200, 50, -20) this.dragging.addPoints(this.pointA, this.start, this.end) } draw(ctx){ this.clear(ctx) let p = this.pointA; p.pen.indicator(ctx) let width = p.radius * .5 , height = p.radius let start = this.start let end = this.end start.pen.indicator(ctx) end.pen.indicator(ctx) p.pen.ellipse(ctx, {width, height, start: start.radians, end: end.radians}, 'red') } } ;stage = MainStage.go();
Run
Meta Data
imports ()
files ('head', 'stroke', 'pointlist', 'point', 'mouse', 'dragging', 'stage')
unused_keys ('title',)
unknown_keys ('categories',)
categories ['simple', 'ellipse']
filepath_exists True
path ellipse-example-2.js
filepath ellipse-example-2.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/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js')
markdown {'html': '', 'content': 'categories: simple\n ellipse\nfiles:\n head\n stroke\n pointlist\n point\n mouse\n dragging\n stage\n---'}