Template:Circleradius9
Jump to navigation
Jump to search
......xxxxxxx......
....xxxxxxxxxxx....
...xxxxxxxxxxxxx...
..xxxxxxxxxxxxxxx..
.xxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxx.
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx
xxxxxxxxx@xxxxxxxxx
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx
.xxxxxxxxxxxxxxxxx.
.xxxxxxxxxxxxxxxxx.
..xxxxxxxxxxxxxxx..
...xxxxxxxxxxxxx...
....xxxxxxxxxxx....
......xxxxxxx......
This template displays circles of radius up to 9 centered on the @, as tabulated in vision.c.
Usage: {{circleradius9|r=radius}}
Uses the following named parameters:
- r, radius of the light.
- origin, the center of the light. defaults to @
- inside, area in the radius. defaults to x
- outside, area outside the radius. defaults to .
(Note: The formula used for the circles appears to be dx2 + dy2 ≤ r2 + r, as it matches the precalculated tables in vision.c.)
See also
- {{circleradius15}} (same as this template, but goes up to 15)
- {{lightradius}} (same as this template, but only goes up to 5)
- {{jumpradius}}