Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 842 Bytes
<!doctype html>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<style type="text/css">
body{background: black}
<canvas id="c1" width="400" height="400">
<script type="text/javascript">
window.onload = function(){
var oc = document.getElementById('c1');
var content = oc.getContext('2d');
content.font = 'Bold 20px Arial';
content.textAlign = 'left';
content.fillStyle = '#008600';
content.fillText('Hello World',100,100);
//content.strokeText('Hello World',100,100);
You can’t perform that action at this time.