xiaolinwu

xiaolinwu(start: Tile, stop: Tile) list[WuTile]

Caluclates a line using Xiaolin Wu’s algorithm.

This produces an anti-aliased line which can be used for line damage calculations.

Parameters:
  • start – start tile of the line

  • stop – end tile of the line

Returns:

A list of tiles and their “brightness”