1.0.0 • Published 2 years ago

shader-worker v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas