Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-06-30 05:01:33 +00:00
Code Issues Projects Releases Wiki Activity
Files
53d6e00b70b2861073d3bf1591000f78e8f7407c
wasm-bindgen/examples/canvas/index.js

5 lines
133 B
JavaScript
Raw Normal View History

example: Add an example of drawing a smiley face with canvas Adapted from https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes
2018-08-15 16:56:24 -07:00
// For more comments about what's going on here, check out the `hello_world`
// example.
Add `catch(console.error)` to all examples Some examples have been failing to load in some browsers, and this ensures that whenever the promise to load Rust code fails we log any errors happening instead of accidentally failing silently. This helped debug a bit in #897
2018-09-28 13:54:29 -07:00
import('./canvas')
.catch(console.error);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 1035ms Template: 13ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API