@2flexible/2flex
v1.1.2
Published
Too flexible infinite canvas library.
Maintainers
Readme
2flex
Too flexible canvas library.
Quick Start
Install the 2flex package:
npm i @2flexible/2flexInitialize your canvas, then create a block to add your canvas. That’s it.
import { RectangleBlock, Canvas } from "@2flexible/2flex";
const initCanvas = new Canvas("canvas", 600, 400, {
"background-color": "black",
});
const block = new RectangleBlock({
x: 0,
y: 0,
width: 40,
height: 40,
backgroundColor: "red",
});
initCanvas.add(block);Contribute
See contributing guide to learn about contributing to 2flex.
License
This content is released under the MIT License.
