Skip to content

JsSuite/vizat

Repository files navigation

vizat

Vizat v2 — blazing-fast HTML5 Canvas 2D library with a scene-tree rendering model.

Install

npm i vizat

Quick start

import { Wrapper, Canvas, Rect } from "vizat";

const wrapper = new Wrapper("container", { height: "400px", width: "100%" });
const canvas = new Canvas({ height: "400px", width: "800px", background: "#1a1a2e" });
wrapper.add(canvas);

canvas.add(new Rect({ x: 40, y: 40, width: 120, height: 80, options: { fillStyle: "blueviolet" } }));
canvas.draw();

Develop

npm install
npm run dev          # playground at localhost:5173/playground.html
npm test
npm run build        # npm lib → dist/
npm run build:demo   # static site → dist-demo/

MIT · @JsSuite

About

HTML5 Canvas 2D JavaScript Library

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors