image-pixel-reshading.js

total 0
used 0
limit 0
/* title: Image Data Reshading categories: imagedata raw files: head pointlist point stage stroke ../point_src/random.js ../point_src/image.js --- */ class MainStage extends Stage { canvas='playspace' mounted(){ // this.dragging.add() this.points = PointList.generate.random(30, [100, 200], [40,20, 10, 0]) } firstDraw(ctx) { // this.clear(ctx) this.points.pen.fill(ctx, '#999') this.points.pen.indicator(ctx) const imageData = ctx.getImageData(0, 0, 400, 400) const data = imageData.data; sepia(data) ctx.putImageData(imageData, 200, 10); invert(data) ctx.putImageData(imageData, 400, 30); grayscale(data) ctx.putImageData(imageData, 600, 30); // blur(data, 400, 150) // blur3(data, 400, 150, 10) // blurSeparable(data, 400, 150, 3) } draw(ctx){ } } ;stage = MainStage.go();
Run
Meta Data
title Image Data Reshading
imports ()
files ('head', 'pointlist', 'point', 'stage', 'stroke', '../point_src/random.js', '../point_src/image.js')
unused_keys ()
unknown_keys ('categories',)
categories ['imagedata', 'raw']
filepath_exists True
path image-pixel-reshading.js
filepath image-pixel-reshading.js
clean_files ('../point_src/core/head.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/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/random.js', '../point_src/image.js')
markdown {'html': '', 'content': 'title: Image Data Reshading\ncategories: imagedata\n raw\nfiles:\n head\n pointlist\n point\n stage\n stroke\n ../point_src/random.js\n ../point_src/image.js\n---'}