MCPcopy Create free account
hub / github.com/andeya/algorithm / DrawPolyline

Function DrawPolyline

polyclip-go/polyutil/draw.go:73–79  ·  view source on GitHub ↗

DrawPolyline is a simple function for drawing a series of rasterized lines, connecting the points specified in pts (treated as a closed polygon). This function uses a very basic implementation of the Bresenham's algorithm (http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm), thus with no anti

(pts []polyclip.Point, brush Putpixel)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

drawlineFunction · 0.85

Tested by

no test coverage detected