summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-17 21:40:44 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-17 21:40:44 +0300
commit6c049ad68cca652a38189df8fdd2d3c9d8642e60 (patch)
tree19233475ae0f2c5a7721965bf46f9937064a4439
parent651491ca50532e8b7cf497c072cf909545ef8a3e (diff)
Fix step updates and wrong color choices
-rw-r--r--client/button.js2
-rw-r--r--client/effects.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/client/button.js b/client/button.js
index 2916938..6691063 100644
--- a/client/button.js
+++ b/client/button.js
@@ -14,6 +14,7 @@ function animate() {
// pixelate
_.delay(function () {
+ $('h4.step').text('(Step 2)');
_.each(Session.get('photos'), function(x, i) {
_.delay(function() {
$('#img-'+x.id).hide()
@@ -28,6 +29,7 @@ function animate() {
// colorize
_.delay(function() {
+ $('h4.step').text('(Step 3)');
_.each(Session.get('photos'), function(x, i) {
_.delay(function () {
$('#img-'+x.id).hide()
diff --git a/client/effects.js b/client/effects.js
index cacbc8e..fc425a1 100644
--- a/client/effects.js
+++ b/client/effects.js
@@ -140,8 +140,8 @@ Effects = (function() {
var cols = Session.get(id + ':newcolors');
var palette = Session.get(id + ':palette');
- var g_p1 = Session.get('g_p1');
- var g_p2 = Session.get('g_p2');
+ var g_p1 = new paper.Color(Session.get('g_p1'));
+ var g_p2 = new paper.Color(Session.get('g_p2'));
var canvas = document.getElementById('canvas-' + id);
var p = new paper.PaperScope();