Skip to content

Commit 3236aab

Browse files
committed
attempted onclick event listener
1 parent 9f90930 commit 3236aab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/secrets.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ for (var r = 0; r < rows; r++) {
4444
}
4545
two.update();
4646

47+
for (var f in flowers) {
48+
var flower = flowers[f];
49+
console.log(flower.id);
50+
$(flower._renderer.elem)
51+
.click(function(e) {
52+
flower.fill = "blue";
53+
})
54+
}
55+
4756

4857
function roseMath(v, k, t) {
4958
v.x = radius * Math.cos(k * t) * Math.cos(t);

0 commit comments

Comments
 (0)