我正在尝试使用创建一个调色板
var palette = []color.Color{color.RGBA{0xRR, 0xGG, 0xBB, 0xff},color.Black}
但我收到此错误:
./lissajous.go:13:40: malformed integer constant: 0x ./lissajous.go:13:42: malformed hex constant ./lissajous.go:13:42: syntax error: unexpected RR, expecting comma or }
猛跑小猪
相关分类