}else if(canvas.width<canvas.height) {
                    ff=(canvas.width/canvas.height); yo=0; xo=((hh*ff)-ww)/2; ww=(hh*ff);
                }else {
                    ff=1; xo=0; yo=0;
                }