1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2023-01-12 22:26:10 +08:00
parent 48c9e77cea
commit 0f3eea8b43

View File

@ -89,8 +89,8 @@ func _qrcode_web(m *ice.Message, text string) {
} }
const ( const (
FG = "fg"
BG = "bg" BG = "bg"
FG = "fg"
DARK = 255 DARK = 255
LIGHT = 127 LIGHT = 127
SIZE = "size" SIZE = "size"
@ -98,16 +98,16 @@ const (
const ( const (
COLOR = "color" COLOR = "color"
BLACK = "black" BLACK = "black"
RED = "red"
GREEN = "green"
YELLOW = "yellow"
BLUE = "blue"
PURPLE = "purple"
CYAN = "cyan"
WHITE = "white" WHITE = "white"
BLUE = "blue"
RED = "red"
GRAY = "gray"
CYAN = "cyan"
GREEN = "green"
PURPLE = "purple"
YELLOW = "yellow"
RANDOM = "random" RANDOM = "random"
GLASS = "#0000" GLASS = "#0000"
GRAY = "gray"
) )
const QRCODE = "qrcode" const QRCODE = "qrcode"
@ -122,7 +122,7 @@ func init() {
mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) {
switch arg[0] { switch arg[0] {
case FG, BG: case FG, BG:
m.Push(arg[0], RED, GREEN, BLUE) m.Push(arg[0], BLACK, WHITE, BLUE, RED, CYAN, GREEN, PURPLE, YELLOW)
} }
}}, }},
}, Hand: func(m *ice.Message, arg ...string) { }, Hand: func(m *ice.Message, arg ...string) {