sakurafx-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

sakuraFx-typescript

Animation based on WebGL.

It is Sakura for TypeScript version.
fork from gryng02

Install pnpm add -D sakurafx-typescript

In html

<canvas id="sakura"></canvas>

In TypeScript

//import
import sakura from "sakurafx-typescript";

//get canvas
const canvas = document.getElementById("sakura")
//initialization and get render
const render = sakura(canvas)

//creat animation callback
function callback(){
  render() //render
  requestAnimationFrame(callback) //call self in next frame
}
callback()

Package Sidebar

Install

npm i sakurafx-typescript

Weekly Downloads

0

Version

1.0.3

License

BSD-3-Clause

Unpacked Size

19.8 kB

Total Files

5

Last publish

Collaborators

  • xiao-e-yun