Bresenham

indigoextras.utils.Bresenham
object Bresenham

An implementation of the Bresenham Line algorithm, which plots clean lines across grids. Used by drawing tools and in this case, for lines of sight.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Bresenham.type

Members list

Value members

Concrete methods

def line(from: Point, to: Point): Batch[Point]

Draw a line across a grid, such as you might see in a pixel art graphics tool.

Draw a line across a grid, such as you might see in a pixel art graphics tool.

Attributes