Template:Circleradius9

From NetHackWiki
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 + dy2r2 + r, as it matches the precalculated tables in vision.c.)

See also