Animation SR
canvas 구현 순서
cavnas 관련
// canvas element in DO
var canvas1 = document.getElementById('canvas1')
var context1 = canvas1.getContext('2d')
// buffer canvas
var canvas2 = document.createElement('canvas')
canvas2.width = 150
canvas2.height = 150
var context2 = canvas2.getContext('2d')
// create something on the canvas
context2.beginPath()
context2.moveTo(10, 10)
context2.lineTo(10, 30)
context2.stroke()
//render the buffered canvas onto the original canvas element
context1.drawImage(canvas2, 0, 0)
video 관련
css