Commit 88557431 authored by santiaago's avatar santiaago
Browse files

remove fill var

issue #97
parent b9404bb0
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@ func RandomGradientColor(w http.ResponseWriter, colors, gColors []color.RGBA, gv
		colorIndex = make(map[int]int)
		for yL := -1; yL <= lines; yL++ {
			var x1, x2, y1, y2, y3 int
			var fill string
			if (xL % 2) == 0 {
				x1, y1, x2, y2, _, y3 = right1stTriangle(xL, yL, fringeSize, distance)
			} else {
@@ -60,8 +59,7 @@ func RandomGradientColor(w http.ResponseWriter, colors, gColors []color.RGBA, gv
			colorMap[yL] = colors[colorIndex[yL]]

			if colorIndex[yL] == 0 {
				fill = draw.FillFromRGBA(colorMap[yL])
				canvas.Polygon(xs, ys, fill)
				canvas.Polygon(xs, ys, draw.FillFromRGBA(colorMap[yL]))
			}

			var x11, x12, y11, y12, y13 int
@@ -83,8 +81,7 @@ func RandomGradientColor(w http.ResponseWriter, colors, gColors []color.RGBA, gv
			colorMap[yL] = colors[colorIndex[yL]]

			if colorIndex[yL] == 0 {
				fill = draw.FillFromRGBA(colorMap[yL])
				canvas.Polygon(xs1, ys1, fill)
				canvas.Polygon(xs1, ys1, draw.FillFromRGBA(colorMap[yL]))
			}
		}
	}