From 347d875acb290929e93969bee2b2c178d4c50ac2 Mon Sep 17 00:00:00 2001 From: frank Date: Wed, 30 Aug 2023 19:39:58 +0800 Subject: [PATCH] fix: Rounded edges of color sections of identity rings (#3968) * fix: Rounded edges of color sections of identity rings * bump version --- VERSION | 2 +- protocol/identity/ring/ring.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 08ce91136..8f93c348a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.166.2 +0.166.3 diff --git a/protocol/identity/ring/ring.go b/protocol/identity/ring/ring.go index 25cd2f497..78463ac0e 100644 --- a/protocol/identity/ring/ring.go +++ b/protocol/identity/ring/ring.go @@ -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]) }