Advertisement
Guest User

exposure calc

a guest
Feb 20th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement