UNPKG

p5.js-svg

Version:

The main goal of p5.SVG is to provide a SVG runtime for p5.js, so that we can draw using p5's powerful API in \<svg\>, save things to svg file and manipulating existing SVG file without rasterization.

9 lines (7 loc) 231 B
import { P5SVG } from './types' export default function (p5: P5SVG) { p5.prototype.loadPixels = function (...args: any[]) { p5._validateParameters('loadPixels', args) return this._renderer.loadPixels() } }