mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Clean up animatedStar.html example.
This commit is contained in:
parent
3ae20c8a4b
commit
52b69817a0
1 changed files with 1 additions and 4 deletions
|
@ -27,8 +27,6 @@
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
canvas = document.getElementById('canvas');
|
canvas = document.getElementById('canvas');
|
||||||
doc = new Doc(canvas);
|
doc = new Doc(canvas);
|
||||||
console.log(doc.currentStyle);
|
|
||||||
doc.currentStyle.fillColor = 'black';
|
|
||||||
setInterval(draw, 60);
|
setInterval(draw, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,8 +38,7 @@
|
||||||
var vector = new Point(20 + 10 * i, 0).rotate(i * (360 / 35 * 2) * Math.sin(count / 150));
|
var vector = new Point(20 + 10 * i, 0).rotate(i * (360 / 35 * 2) * Math.sin(count / 150));
|
||||||
var l = vector.length;
|
var l = vector.length;
|
||||||
var path = new Path();
|
var path = new Path();
|
||||||
// path.strokeColor = '#000000';
|
path.fillColor = i % 2 ? 'red' : 'black';
|
||||||
//path.fillColor = i % 2 ? 'red' : 'black';
|
|
||||||
path.closed = true;
|
path.closed = true;
|
||||||
for (var j = 0; j < 32; j++) {
|
for (var j = 0; j < 32; j++) {
|
||||||
vector = vector.rotate(45 / 4);
|
vector = vector.rotate(45 / 4);
|
||||||
|
|
Loading…
Reference in a new issue