Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jolle/paries

🎨 A HTML5 canvas library
https://github.com/jolle/paries

canvas html5 javascript typescript

Last synced: about 1 month ago
JSON representation

🎨 A HTML5 canvas library

Awesome Lists containing this project

README

        

# pariΔ“s

```ts
import { paries, layer, rect } from 'paries';

const canvas = paries(
{
width: 100,
height: 50
},
layer(
rect({
x: 10,
y: 20,
size: {
width: 10,
height: 10
},
fill: { fillColor: '#00ff00' }
})
),
rect({
x: 50,
y: 20,
size: {
dX: 65,
dY: 24
},
stroke: { strokeColor: '#00ff00', strokeWidth: 3 }
})
);

document.body.appendChild(canvas);
```