skoppe / spasm

Write single page applications in D that compile to webassembly
MIT License
218 stars 17 forks source link

Can we please get a hello world canvas OR WebGL example? #44

Closed Zireael07 closed 4 years ago

Zireael07 commented 4 years ago

Underrun is awesome, but overkill for what I'm thinking of (just a triangle or a "Hello world" text in WebGL).

skoppe commented 4 years ago

Sure. Here is an canvas one, plus demo. For WebGL it is similar, but I refer to the canvas api docs for getContext()