Team:Grenoble/script
From 2012.igem.org
(Difference between revisions)
Line 97: | Line 97: | ||
}else{ | }else{ | ||
this.frameNb++; | this.frameNb++; | ||
- | this.next()}}; | + | this.next() |
- | + | } | |
- | + | }; | |
- | + | this.next()}function A(c,a,b){ | |
- | + | var d,e,f,j,k,l,i,g,h; | |
- | + | b=b||{}; | |
- | + | d=b.max_w; | |
- | + | e=b.min_w; | |
- | + | f=b.max_h; | |
- | + | j=b.max_h; | |
- | + | k=b.round===undefined?1:b.round; | |
- | + | l=c/a; | |
- | + | i=a/c; | |
- | + | g=a; | |
- | + | h=c; | |
- | + | if(h<e){ | |
- | + | h=e; | |
- | + | g=h*i | |
- | + | } | |
- | + | if(g<j){ | |
- | + | g=j; | |
- | + | h=g*l | |
- | + | } | |
- | + | if(d&&(h>d)){ | |
- | + | h=d; | |
- | + | g=h*i | |
- | + | } | |
- | + | if(f&&(g>f)){ | |
- | + | g=f; | |
- | + | h=g*l | |
+ | } | ||
} | } | ||
} | } |
Revision as of 16:44, 11 July 2012