minimal-example.js

total 0
used 0
limit 0
/* title: Most Minimal Example categories: minimal files: head point stage --- The minimal requirements include the _head_, _stage_, and the _point_. */ class MainStage extends Stage { canvas = 'playspace' mounted() { this.point = this.center.copy() } draw(ctx){ this.clear(ctx) this.point.pen.indicator(ctx) } } stage = MainStage.go(/*{ loop: true }*/)
Run
Meta Data
title Most Minimal Example
imports ()
files ('head', 'point', 'stage')
unused_keys ()
unknown_keys ('categories',)
categories ['minimal']
filepath_exists True
path minimal-example.js
filepath minimal-example.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-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js')
markdown {'html': '<p>The minimal requirements include the <em>head</em>, <em>stage</em>, and the <em>point</em>.</p>', 'content': 'title: Most Minimal Example\ncategories: minimal\nfiles:\n head\n point\n stage\n---\n\nThe minimal requirements include the _head_, _stage_, and the _point_.'}