From 1284662a4377befa38419c2e91205e6de2d282dd Mon Sep 17 00:00:00 2001 From: Weilin Shi <934587911@qq.com> Date: Thu, 26 Apr 2018 10:03:29 +0800 Subject: [PATCH] Update code style and readme.md --- README.md | 4 ++-- captcha.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index befb37a..bb8f35e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -> Package captcha provides an easy to use, unopinionated API for captcha generation +> Package captcha provides an easy to use, unopinionated API for captcha generation.
@@ -42,7 +42,7 @@ func handle(w http.ResponseWriter, r *http.Request) { ## Contributing If your found a bug, please contribute! -see [contributing.md](contributing.md) for more detail +see [contributing.md](contributing.md) for more detail. ## License [MIT](LICENSE.md) diff --git a/captcha.go b/captcha.go index 28e2ea9..90d2f14 100644 --- a/captcha.go +++ b/captcha.go @@ -258,7 +258,7 @@ func randomInvertColor(base color.Color) color.Color { hue := float64(rng.Intn(361)) / 360 saturation := 0.6 + rng.Float64()*0.2 - return hsva{h: hue, s: saturation, v: value, a: uint8(255)} + return hsva{h: hue, s: saturation, v: value, a: 255} } func getLightness(colour color.Color) float64 {