1.0.3 • Published 2 years ago

glsl-canvas-svelte v1.0.3

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

glslCanvas-svelte

A simple Svelte wrapper for glslCanvas

Installation

I have not yet released it to npm, whoops.

Usage

Create a .frac file in the static folder. Then, add the <Shader/> component with the file path as the file prop.

Example:

<script lang="ts">
  import { Shader } from 'gsls-cavnas-svelte'
</script>

<Shader file="shaders/example.frag" width={750} height={750}/>
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago