diff --git a/ui/experiments/editor.html b/ui/experiments/editor.html index c48d6f75..9e84cd2e 100755 --- a/ui/experiments/editor.html +++ b/ui/experiments/editor.html @@ -85,7 +85,11 @@ function loadSliderState(){ // set the saved values... while(state.length > 0){ var e = $('#'+state.pop()) - .val(parseFloat(state.pop())) + if(e.prop('normalize')){ + e.val(v2r(parseFloat(state.pop()))) + } else { + e.val(parseFloat(state.pop())) + } } } @@ -106,6 +110,19 @@ function clearStates(){ $('.state').remove() } +function makeRange(){ +} + +var C = 43.47 + +function r2v(r){ + return Math.pow(Math.E, r/C) +} + +function v2r(v){ + return Math.log(v)*C +} + @@ -115,17 +132,18 @@ function clearStates(){
Brightness: - + +
Contrast: - +
Saturation: - +
@@ -153,7 +171,7 @@ function clearStates(){
- States + Snapshots
diff --git a/ui/experiments/image.jpg b/ui/experiments/image.jpg new file mode 100755 index 00000000..a1f5ff6f Binary files /dev/null and b/ui/experiments/image.jpg differ