1.0.0 • Published 2 years ago
shader-worker v1.0.0
Shader toy in a worker.
Examples
import { createShader } from 'shader-worker'
const { canvas } = createShader()
const style = document.createElement('style')
style.textContent = /*css*/ `
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #000;
overflow: hidden;
}
canvas {
width: 100%;
height: 100%;
}
`
document.body.appendChild(style)
document.body.appendChild(canvas)
API
Credits
Contributing
All contributions are welcome!
License
MIT © 2022 stagas
1.0.0
2 years ago