@truefusion/skittle

0.24.1 • Public • Published

skittle

Skittle is an API-agnostic, HTML5-canvas library inspired by origami.js. Unlike most other canvas libraries, skittle is designed with web components in mind, giving you the freedom to work with any HTML5 canvas on your terms. Skittle mostly only cares about rendering. Things like animations and pointer events are left in the hands of the developer. Nevertheless, we provide basic examples on ways to deal with things like animations and hit detection.

import * as Skittle from '@truefusion/skittle';

var $skittle = new Skittle.Layer();

$skittle.shapes.add({
	type: 'rect',
	x: 0,
	y: 0,
	width: 100,
	height: 100,
});

$skittle.draw();

Install

npm install @truefusion/skittle --save

Project setup

npm install
npm run build

Readme

Keywords

Package Sidebar

Install

npm i @truefusion/skittle

Weekly Downloads

33

Version

0.24.1

License

none

Unpacked Size

36.7 kB

Total Files

5

Last publish

Collaborators

  • aimfornan