SHARE
TWEET

exposure calc

a guest Feb 20th, 2012 73 Never
  1. <SCRIPT LANGUAGE="JavaScript">
  2. function tt (form){
  3. x = Math.pow(form.aperture.value,2);
  4. y = Math.pow(2,form.EV.value);
  5. iso = (document.form.iso.options[document.form.iso.selectedIndex].value);
  6. if (form.shutter.value <=1)
  7. {
  8. form.shutter.value = "1/" + Math.round ((1/(x/y))*(iso)*1000)/1024 + " th sec";
  9. console.log(x/y);
  10. }
  11. else {form.shutter.value = Math.round (x/y*10)/10*(iso) + " sec";
  12. console.log(x/y);
  13. }
  14. }
  15. </script>
RAW Paste Data
Top