Make the comparison work

This commit is contained in:
Martyn 2021-01-03 11:43:18 +01:00
parent 0a28f0b93c
commit f15419eab9
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func PatternHandler(response http.ResponseWriter, request *http.Request) {
if vars["color"] != "" {
var c queue.RGBcolor
for cn, cv := range colornames.Map {
if cn == strings.ToLower(vars["name"]) {
if cn == strings.ToLower(vars["color"]) {
c[0] = cv.R
c[1] = cv.G
c[2] = cv.B