@polygonjs/plugin-trace
TypeScript icon, indicating that this package has built-in type declarations

1.5.46 • Public • Published

Polygonjs Trace Plugin

This adds 1 node to trace images to lines in the Polygonjs webgl engine.

  • Sop/Trace: converts an image to lines

See example scene:

scene with trace

Install

Import the plugin:

yarn add @polygonjs/plugin-trace

And register the plugin in the function configurePolygonjs in the file PolyConfig.js so that the node can be accessible in both the editor and your exported scene:

import {polyPluginTrace} from '@polygonjs/plugin-trace';

export function configurePolygonjs(poly) {
	poly.registerPlugin(polyPluginTrace);
}

/@polygonjs/plugin-trace/

    Package Sidebar

    Install

    npm i @polygonjs/plugin-trace

    Weekly Downloads

    9

    Version

    1.5.46

    License

    MIT

    Unpacked Size

    948 kB

    Total Files

    11

    Last publish

    Collaborators

    • polygonjs