linear palette

This commit is contained in:
Tnze
2021-03-31 16:00:15 +08:00
parent 0acecb936d
commit adf77e2661
3 changed files with 85 additions and 12 deletions

View File

@ -4,7 +4,6 @@ import (
"bytes"
_ "embed"
"encoding/gob"
"fmt"
"github.com/Tnze/go-mc/data/block"
"image"
"image/png"
@ -37,11 +36,6 @@ func init() {
}
}
func usage() {
_, _ = fmt.Fprintf(os.Stderr, "usage: %s [-region <region path>] \n", os.Args[0])
os.Exit(1)
}
func mkmax(c, n *int) {
if *c < *n {
*c = *n