This commit is contained in:
potassium 2025-02-20 10:48:02 +03:00
parent 1306022794
commit e161720f1c
3 changed files with 26 additions and 23 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.niplace.ru/XoxJlopeZi4BB/palette
go 1.23.4

View File

@ -2,10 +2,10 @@ package main
import (
"image"
_ "image/png"
_ "image/jpeg"
"image/color"
_ "image/jpeg"
"image/png"
_ "image/png"
"os"
)

View File

@ -89,7 +89,7 @@ func main() {
var palette []color.Color
var colors []string
var colors []string
_ = []string{
"#ffffec", // soft-white
"#ff0000", // red
@ -98,26 +98,26 @@ var colors []string
"#000000", // black
}
funniPalette := []string{
"#ffffec",
"#000000",
"#4a3544",
"#757575",
"#8e8e8e",
"#666666",
"#4c4c4c",
"#3b3b3b",
"#949494",
"#ffffff",
"#665361",
"#3f3f3f",
"#525252",
"#838383",
"#111111",
"#070707",
"#b9b9b9",
"#dfdfdf",
}
colors = funniPalette
"#ffffec",
"#000000",
"#4a3544",
"#757575",
"#8e8e8e",
"#666666",
"#4c4c4c",
"#3b3b3b",
"#949494",
"#ffffff",
"#665361",
"#3f3f3f",
"#525252",
"#838383",
"#111111",
"#070707",
"#b9b9b9",
"#dfdfdf",
}
colors = funniPalette
if *paletteFile != "" {
f, err := os.Open(*paletteFile)
if err != nil {