diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-06-13 17:55:26 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-06-13 17:55:26 -0400 |
| commit | be42fb25f2a497d25dd805b699bf21ef1ab4dbfa (patch) | |
| tree | 0125f5ff6400fe14e48bb70fa6d28db23f49b9f8 /public/assets/javascripts/ui/editor/LightControl.js | |
| parent | 6b00fdd02612f4e5068f436627faa8b702b5f914 (diff) | |
etc
Diffstat (limited to 'public/assets/javascripts/ui/editor/LightControl.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/LightControl.js | 21 |
1 files changed, 21 insertions, 0 deletions
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) + } + }) +*/ + }) |
