From be42fb25f2a497d25dd805b699bf21ef1ab4dbfa Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 13 Jun 2014 17:55:26 -0400 Subject: etc --- public/assets/javascripts/ui/editor/LightControl.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'public/assets/javascripts/ui/editor/LightControl.js') diff --git a/public/assets/javascripts/ui/editor/LightControl.js b/public/assets/javascripts/ui/editor/LightControl.js index 1385820..20c3577 100644 --- a/public/assets/javascripts/ui/editor/LightControl.js +++ b/public/assets/javascripts/ui/editor/LightControl.js @@ -12,4 +12,25 @@ var LightControl = View.extend({ // $("body").removeClass("pastePaper"); }, +/* + $("#shadow-control").on({ + mousedown: function(){ app.dragging = true }, + change: function(){ + var hex = (~~($(this).int() / 100 * 0xff)).toString(10) + if (hex.length == 1) hex = "0" + hex; + var color = "rgba(" + [hex, hex, hex, "1.0"] + ")" + $(".face").css("border-color", color) + } + }) + + $("#brightness-control").on({ + mousedown: function(){ app.dragging = true }, + change: function(){ + var hex = (~~($(this).int() / 100 * 0xff)).toString(10) + var color = "rgba(" + [hex, hex, hex, "0.9"] + ")" + $("body,.face").css("background-color", color) + } + }) +*/ + }) -- cgit v1.2.3-70-g09d2