function drawShape(){This creates the basic set up for a canvas. In order to be able to draw you need to add
var canvas = document.getElementById('tutorial');
if (canvas.getContext){
var ctx = canvas.getContext('2d');
}
}
ctx.fillStyle
ctx.fillRect
ctx.beginPath
ctx.arc(
ctx.lineTo
ctx.moveTo
ctx.lineTo
ctx.strokeTo view a example click here.
The assignment this week had two parts: create a blog (done) and summarize your work with the Canvas so far.
ReplyDelete