@pencil.js/scene

1.18.0 • Public • Published

Scene

Whole container of your drawing.

Installation

npm install @pencil.js/scene

Examples

import Scene from "@pencil.js/scene";

const options = {
    fill: "#DDD"
};
const scene = new Scene(document.body, options);
scene.startLoop();

RectangleOptions

Inherit from OffscreenCanvasOptions.

Name Type Default Comment
cursor String Component.cursors.default Cursor on hover

/@pencil.js/scene/

    Package Sidebar

    Install

    npm i @pencil.js/scene

    Weekly Downloads

    50

    Version

    1.18.0

    License

    MIT

    Unpacked Size

    11.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • gmartigny