This project is read-only.

Rendering with zoom

renderingwithzoom.png
If you want to get a zoomed view of the rendered scene simply apply the necessery transformations to the 2D rendering context of the main canvas after initialization:

var zoom = 2;
sheetengine.context.scale(zoom,zoom);
sheetengine.context.translate(
  -sheetengine.canvas.width/(2*zoom)*(zoom-1),
  -sheetengine.canvas.height/(2*zoom)*(zoom-1));

Last edited Dec 11, 2012 at 9:37 PM by dobsonl, version 2

Comments

No comments yet.