wasm-chika
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

wasm-chika

WebAssembly for easy canvas manipulation

Example

Use https://www.npmjs.com/package/create-wasm-app

npm i wasm-chika and npm run start is starting work

Insert:

index.js

import * as wasm from "wasm-chika";

wasm.Chika.clean('chika')
new wasm.Text('chika', 'asd', 50, 50, 'bold 48px serif')

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Hello Chika!</title>
  </head>
  <body>
    <noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
    <script src="./bootstrap.js"></script>
    <canvas id="chika"></canvas>
  </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i wasm-chika

Weekly Downloads

2

Version

0.1.2

License

none

Unpacked Size

46.6 kB

Total Files

5

Last publish

Collaborators

  • catry