glslCanvas-svelte

Glslcanvas Svelte

A simple Svelte wrapper for glslCanvas

gslsCanvas-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}/>

Top categories

Loading Svelte Themes