Template:Lightradius

From NetHackWiki
Jump to navigation Jump to search

This template shows a radius of light around a light source.

Uses the following named parameters:

  • r, radius of the light. defaults to 4
  • origin, the center of the light. defaults to @
  • inside, area in the radius. defaults to x
  • outside, area outside the radius. defaults to .

For example: {{lightradius|r=3}} or {{lightradius|r=3|inside={{lightblue|e}}}}

4:

...........
...xxxxx...
..xxxxxxx..
.xxxxxxxxx.
.xxxxxxxxx.
.xxxx@xxxx.
.xxxxxxxxx.
.xxxxxxxxx.
..xxxxxxx..
...xxxxx...
...........

3:

...........
...........
....xxx....
...xxxxx...
..xxxxxxx..
..xxx@xxx..
..xxxxxxx..
...xxxxx...
....xxx....
...........
...........

2:

...........
...........
...........
....xxx....
...xxxxx...
...xx@xx...
...xxxxx...
....xxx....
...........
...........
...........

1:

...........
...........
...........
...........
....xxx....
....x@x....
....xxx....
...........
...........
...........
...........

Other params:

...........
...........
....~~~....
...~~~~~...
..~~~~~~~..
..~~~H~~~..
..~~~~~~~..
...~~~~~...
....~~~....
...........
...........


See also