fix: Rounded edges of color sections of identity rings (#3968)

* fix: Rounded edges of color sections of identity rings

* bump version
This commit is contained in:
frank 2023-08-30 19:39:58 +08:00 committed by GitHub
parent c24c3966e2
commit 347d875acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
0.166.2
0.166.3

View File

@ -76,6 +76,7 @@ func DrawRing(param *DrawRingParam) ([]byte, error) {
dc.SetHexColor(colors[param.ColorHash[i][1]])
dc.DrawArc(float64(param.Width/2), float64(param.Height/2), radius, arcPos, arcPos+unitRadLen*float64(param.ColorHash[i][0]))
dc.SetLineWidth(ringPxSize)
dc.SetLineCapButt()
dc.Stroke()
arcPos += unitRadLen * float64(param.ColorHash[i][0])
}