Skip to content

Latest commit

 

History

History

scene

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Scene

Whole container of your drawing.

Examples

import { Scene } from "pencil.js";

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

SceneOptions

Inherit from OffscreenCanvasOptions.

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