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 ( import (
"image" "image"
_ "image/png"
_ "image/jpeg"
"image/color" "image/color"
_ "image/jpeg"
"image/png" "image/png"
_ "image/png"
"os" "os"
) )

View File

@ -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 {