MCPcopy Create free account
hub / github.com/afocus/captcha / DrawLine

Method DrawLine

draw.go:34–62  ·  view source on GitHub ↗

DrawLine 画直线 Bresenham算法(https://zh.wikipedia.org/zh-cn/布雷森漢姆直線演算法) x1,y1 起点 x2,y2终点

(x1, y1, x2, y2 int, c color.Color)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

drawNoisesMethod · 0.80

Calls 1

signFunction · 0.85

Tested by

no test coverage detected