hello_canvas

[code]
/** demo.js
* …comparing canvas and BitmapData
* @author amyflash.com
*/

(function() {
var can = document.getElementById(“canvas”);//
var ctx = can.getContext(“2d”);
ctx.font=”20px Arial”;
ctx.fillText(“hello world”,50,50);
})();
[/code]
[

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>