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

Function drawline

polyclip-go/polyutil/draw.go:37–64  ·  view source on GitHub ↗

Bresenham's algorithm, http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm TODO: handle int overflow etc.

(x0, y0, x1, y1 int, brush Putpixel)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

DrawPolylineFunction · 0.85
TestLineFunction · 0.85

Calls 2

brushFunction · 0.85
absFunction · 0.70

Tested by 1

TestLineFunction · 0.68