UNPKG

atscntrb-hx-teaching-mydraw

Version:

This package contains library code for teaching some basic drawing involving cairo and canvas-2d.

29 lines (23 loc) 445 B
<!doctype html> <html> <head> <title>HTML5 Canvas2d in ATS</title> <style> #image-container { margin:0 auto; width:800px; height: auto; } </style> </head> <body> <h1> Koch Snowflake </h1> <h2> A simple example of ATS -> C -> Javascript </h2> <div id="image-container" align="center"> <canvas id="KochSnowflake" width="600px" height="400px"></canvas> </div> <script src="test03-canvas2d.js"></script> </body> </html>