Skip to main content

path_overlays

Function path_overlays 

Source
pub fn path_overlays(path: &[Pos], grid: &Grid, color: Rgb) -> Vec<Overlay>
Expand description

The overlays drawing path (the unit’s tile first) in color: the line Under the glyphs, then the arrowhead Over them; nothing for a path of one tile. Clipped to the tiles of grid. On a zoomed grid the line and the arrowhead are the art-sized tile’s, every pixel a square of the zoom’s.