@moefy-canvas/theme-sakura
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

@moefy-canvas/theme-sakura

type npm downloads downloads GitHub license

🌸 稍等片刻~

Install

pnpm add @moefy-canvas/theme-sakura

Usage

<canvas id="moefy-canvas"></canvas>
import {
   Sakura,
   type SakuraConfig,
   MAX_Z_INDEX,
   type CanvasOptions,
} from '@moefy-canvas/theme-sakura'

const themeConfig: SakuraConfig = {
   numPatels: 30,
}

const canvasOptions: CanvasOptions = {
   opacity: 1,
   zIndex: -MAX_Z_INDEX,
}

const el = document.getElementById('moefy-canvas')
const sakura = new Sakura(themeConfig, canvasOptions)
sakura.mount(el as HTMLCanvasElement)

ThemeConfig

export interface SakuraConfig extends ThemeConfig {
   numPatels?: number
}

Package Sidebar

Install

npm i @moefy-canvas/theme-sakura

Weekly Downloads

2

Version

0.5.2

License

MIT

Unpacked Size

68.5 kB

Total Files

10

Last publish

Collaborators

  • sigure_mo