¡@

Home 

javascript Programming Glossary: yview

HTML5 Canvas camera/viewport - how to actally do it?

http://stackoverflow.com/questions/16919601/html5-canvas-camera-viewport-how-to-actally-do-it

position sx sy is the same position of the camera xView yView and the crop dimensions are the same as the viewport canvas.. dWidth dHeight offset point to crop the image sx xView sy yView dimensions of cropped image sWidth context.canvas.width sHeight.. object position in world room x y viewport position xView yView render position x xView y yView This works for all kind of coordinates..