go.mod
This commit is contained in:
parent
1306022794
commit
e161720f1c
4
merge.go
4
merge.go
@ -2,10 +2,10 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
_ "image/png"
|
|
||||||
_ "image/jpeg"
|
|
||||||
"image/color"
|
"image/color"
|
||||||
|
_ "image/jpeg"
|
||||||
"image/png"
|
"image/png"
|
||||||
|
_ "image/png"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
40
palette.go
40
palette.go
@ -89,7 +89,7 @@ func main() {
|
|||||||
|
|
||||||
var palette []color.Color
|
var palette []color.Color
|
||||||
|
|
||||||
var colors []string
|
var colors []string
|
||||||
_ = []string{
|
_ = []string{
|
||||||
"#ffffec", // soft-white
|
"#ffffec", // soft-white
|
||||||
"#ff0000", // red
|
"#ff0000", // red
|
||||||
@ -99,25 +99,25 @@ var colors []string
|
|||||||
}
|
}
|
||||||
funniPalette := []string{
|
funniPalette := []string{
|
||||||
"#ffffec",
|
"#ffffec",
|
||||||
"#000000",
|
"#000000",
|
||||||
"#4a3544",
|
"#4a3544",
|
||||||
"#757575",
|
"#757575",
|
||||||
"#8e8e8e",
|
"#8e8e8e",
|
||||||
"#666666",
|
"#666666",
|
||||||
"#4c4c4c",
|
"#4c4c4c",
|
||||||
"#3b3b3b",
|
"#3b3b3b",
|
||||||
"#949494",
|
"#949494",
|
||||||
"#ffffff",
|
"#ffffff",
|
||||||
"#665361",
|
"#665361",
|
||||||
"#3f3f3f",
|
"#3f3f3f",
|
||||||
"#525252",
|
"#525252",
|
||||||
"#838383",
|
"#838383",
|
||||||
"#111111",
|
"#111111",
|
||||||
"#070707",
|
"#070707",
|
||||||
"#b9b9b9",
|
"#b9b9b9",
|
||||||
"#dfdfdf",
|
"#dfdfdf",
|
||||||
}
|
}
|
||||||
colors = funniPalette
|
colors = funniPalette
|
||||||
if *paletteFile != "" {
|
if *paletteFile != "" {
|
||||||
f, err := os.Open(*paletteFile)
|
f, err := os.Open(*paletteFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user