setZoom: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
{{func|moveToken}},  
{{func|moveToken}},  
{{func|getTokenY}},
{{func|getTokenY}},
{{func|goto}},
{{func|getZoom}}.
{{func|getZoom}}.
}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Revision as of 08:32, 30 April 2015

setZoom() Function

Introduced in version 1.4
Sets the zoom level of the viewport.

Usage

setZoom(z)

Parameters

  • z - The zoom level of the viewport (the current zoom level can be seen at the bottom of the maptool screen. You can also use getZoom()

Example

Zoom in by a factor 2
[h: z = getZoom()]
[h: setZoom(2*z)]

See Also