Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jolle/paries
- Owner: jolle
- License: mit
- Created: 2018-09-09T14:06:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T19:07:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-18T19:26:38.146Z (about 1 month ago)
- Topics: canvas, html5, javascript, typescript
- Language: TypeScript
- Size: 167 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
```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);
```