mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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() {
|
||||
canvas = document.getElementById('canvas');
|
||||
doc = new Doc(canvas);
|
||||
console.log(doc.currentStyle);
|
||||
doc.currentStyle.fillColor = 'black';
|
||||
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 l = vector.length;
|
||||
var path = new Path();
|
||||
// path.strokeColor = '#000000';
|
||||
//path.fillColor = i % 2 ? 'red' : 'black';
|
||||
path.fillColor = i % 2 ? 'red' : 'black';
|
||||
path.closed = true;
|
||||
for (var j = 0; j < 32; j++) {
|
||||
vector = vector.rotate(45 / 4);
|
||||
|
|
Loading…
Reference in a new issue