dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 010644d2cd24d8427f8110d7230fb00b0971453a
parent cfea7be5349eed897bc3d8a53fbf585e407db6a6
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 27 May 2023 23:05:32 -0700

cleanup

Diffstat:
Mpkg/captcha/image.go | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/pkg/captcha/image.go b/pkg/captcha/image.go @@ -681,15 +681,13 @@ func (m *Image) renderFakePath(points []Point) { // Draw the whole line m.withState(func() { + m.c.SetLineWidth(1) for i := 1; i < len(points); i++ { prev := points[i-1] pt := points[i] grad := getGradient(prev, pt, gradColors, i) m.c.SetStrokeStyle(grad) - m.withState(func() { - m.c.SetLineWidth(1) - m.strokeCubicLine(prev, pt, -d) - }) + m.strokeCubicLine(prev, pt, -d) } }) @@ -711,10 +709,8 @@ func (m *Image) renderFakePath(points []Point) { for i := 1; i < len(points); i++ { prev := points[i-1] pt := points[i] - grad := getGradient(prev, pt, gradColors, i) m.c.SetStrokeStyle(grad) - //m.c.SetColor(color.White) m.withState(func() { m.c.SetLineWidth(4)