アットウィキロゴ

canvas

import 'dart:html';
import 'dart:math';
void main() {
CanvasElement canvas = new Element.tag("canvas");
canvas.height = 500;
canvas.width = 500;
document.body.children.add(canvas);
var ctx = canvas.getContext("2d");
ctx.fillText("hello canvas", 50, 50);
ctx.beginPath();
ctx.arc(150, 150, 20, 0, PI * 2, true);
ctx.closePath();
ctx.fill();
}
 
最終更新:2013年11月21日 01:28