body{ | body{ | ||||
background-color:#000; | |||||
background-color:#666; | |||||
} | |||||
#painter{ | |||||
background-color:#444; | |||||
width: 75%; | |||||
height: 75% | |||||
} | } |
function initialize(DOC){ | function initialize(DOC){ | ||||
console.log(DOC); | |||||
var canvas = DOC.getElementById("painter"); | var canvas = DOC.getElementById("painter"); | ||||
if (!canvas){ | if (!canvas){ | ||||
throw new Error("DOM Missing painter canvas."); | throw new Error("DOM Missing painter canvas."); |
</head> | </head> | ||||
<body> | <body> | ||||
<canvas id="painte"></canvas> | |||||
<canvas id="painter" width:"128" height:"256"></canvas> | |||||
</body> | </body> | ||||
<script src="app/js/main.js"></script> | <script src="app/js/main.js"></script> |