moarpatterns #1

Merged
martyn merged 4 commits from moarpatterns into master 2021-01-03 10:46:39 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit f15419eab9 - Show all commits

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