Skip to content

AkiaCode/wasm-chika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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>

About

WebAssembly for easy canvas manipulation

Topics

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Sponsor this project

Languages