paper.js/examples/Scripts/Circle.html
2011-05-07 13:44:38 +01:00

19 lines
No EOL
573 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Example</title>
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript">var root = '../../'</script>
<script type="text/javascript" src="../../src/load.js"></script>
<script type="text/paperscript" canvas="canvas">
var center = document.bounds.center;
for (var i = 0; i < 70; i++) {
var path = new Path.Circle(center, i * 5);
path.strokeColor = 'black';
}
</script>
</head>
<body>
<canvas id='canvas' resize></canvas>
</body>