Skip to content

Commit

Permalink
Follow the advice of ineffassign
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Aug 2, 2023
1 parent 8ba70e2 commit c88353e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ func Separate3(inImage image.Image, color1, color2, color3 color.RGBA, thresh ui
// get the rgba color
// cr = inImage.At(x, y).(image.RGBAColor)
cr = color.RGBAModel.Convert(inImage.At(x, y)).(color.RGBA)
r = 0
g = 0
b = 0
a = 255
h, _, s = HLS(float64(cr.R)/255.0, float64(cr.G)/255.0, float64(cr.B)/255.0)
// Find the closest color of the three, measured in hue and saturation
Expand Down

0 comments on commit c88353e

Please sign in to comment.