From 651491ca50532e8b7cf497c072cf909545ef8a3e Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Wed, 17 Jun 2015 21:36:44 +0300 Subject: averageColor() also animated --- client/button.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index f759887..2916938 100644 --- a/client/button.js +++ b/client/button.js @@ -42,6 +42,14 @@ function animate() { _.delay(function() { Effects.average(); + }, delay); + + _.delay(function() { + _.each(Session.get('photos'), function(x, i) { + _.delay(function () { + Effects.averageColor(x.id); + }, 400 * i); + }); }, delay + 2000); } -- cgit v1.3.1