¡@

Home 

2014/10/16 ¤W¤È 12:02:44

jquery Programming Glossary: ctx.fillrect

Dynamically resize canvas window with javascript/jquery?

http://stackoverflow.com/questions/11368477/dynamically-resize-canvas-window-with-javascript-jquery

the canvas. How I would write it function var c #canvas ctx c 0 .getContext '2d' var draw function ctx.fillStyle #000 ctx.fillRect 10 10 50 50 function set width and height ctx.canvas.height 600 ctx.canvas.width 600 draw draw wait 2 seconds repeate same..

Can regular JavaScript be mixed with jQuery?

http://stackoverflow.com/questions/3677140/can-regular-javascript-be-mixed-with-jquery

var canvas document.getElementById canvas if canvas.getContext var ctx canvas.getContext 2d ctx.fillStyle rgb 200 0 0 ctx.fillRect 10 10 55 50 ctx.fillStyle rgba 0 0 200 0.5 ctx.fillRect 30 30 55 50 script head body onload draw canvas id canvas width.. var ctx canvas.getContext 2d ctx.fillStyle rgb 200 0 0 ctx.fillRect 10 10 55 50 ctx.fillStyle rgba 0 0 200 0.5 ctx.fillRect 30 30 55 50 script head body onload draw canvas id canvas width 150 height 150 canvas body html and mix this JavaScript..

capturing html5 canvas output as video or swf or png sequence?

http://stackoverflow.com/questions/4781602/capturing-html5-canvas-output-as-video-or-swf-or-png-sequence

cnv document.getElementById myCanvas var ctx cnv.getContext 2d if ctx var img new Image ctx.fillStyle rgba 255 0 0 0.5 ctx.fillRect 0 0 300 300 ctx.fill img.onload function ctx.drawImage img 0 0 img.src my external image path var data cnv.toDataURL image..