@lilonga/output-p5

0.0.1 • Public • Published

@lilonga/output-p5

Renders input code as a P5.js sketch.

NPM

Install

npm install --save @lilonga/output-p5

Usage

Try out an editable version of the below example at Repl.it: https://repl.it/@lilonga/output-p5

import React, { Component } from 'react'

import OutputPjs from '@lilonga/output-p5'

class Example extends Component {
  render() {
    return (
      <OutputP5
        width={100}
        height={100}
        input="line(0,0,100,100)"
      />
    )
  }
}
export default Example

API

See @lilonga/output-p5 docs for more examples and documentation

License

MIT © Luka Kakia

Package Sidebar

Install

npm i @lilonga/output-p5

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

942 kB

Total Files

7

Last publish

Collaborators

  • luka-k