UNPKG

atscntrb-hx-teaching-mydraw

Version:

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

30 lines (23 loc) 444 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> Checker Board </h1> <h2> A simple example of ATS -> C -> Javascript </h2> <div id="image-container" align="center"> <canvas id="CheckerBoard" width="450px" height="450px"></canvas> </div> <script src="test02-canvas2d.js"></script> </body> </html>