Template:Coordinate to Pixel

From My Wiki
Revision as of 15:08, 20 January 2009 by imported>Tlosk's Bot (New page: <includeonly> {{#switch: {{uc:{{{Direction}}}}} | N = {{#expr: {{{Scale|128}}} - {{{Offset|0}}} - {{{Value|0}}} / 102.8 * 128 round 0}} | S = {{#expr: {{{Scale|128}}} - {{{Offset|0}}} + ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Syntax

{{Coordinate to Pixel
 | <Value> (0.0 to 102.8)
 | <Direction> (N E S W)
 | <Scale> (128, 256, 512, etc)
 | <Offset> (Half point image width rounded up, minus any border width)
}}

For example:

{{Coordinate to Pixel|10.5|N|128|3}}

gives the result:


0