add a simple example, also for testing purposes

Fixes #8
This commit is contained in:
Nick Desaulniers
2015-09-18 10:37:09 -07:00
parent c722fd3520
commit ca5a835bec
+18
View File
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<script src="CanvasTextWrapper.js"></script>
<script >
var ctx = document.createElement('canvas').getContext('2d');
ctx.canvas.width = ctx.canvas.height = 200;
CanvasTextWrapper(ctx.canvas, "hello world how long can this be????");
document.addEventListener('DOMContentLoaded', function () {
document.body.appendChild(ctx.canvas);
});
</script>
</head>
<body>
</body>
</html>