colorcoding

package module
v0.0.0-...-ad27898 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

README

color-coding

Encode/decode data in pixels through color coding for game map tiles Each color represent something e.g blue pixel for water, darkbrown pixel for wall etc.

The package generate the files: reference-color-codes-fractus.png reference-color-codes-fractus-palette.png reference-color-codes-fractus.csv In Pixelorama you can File > Open and import as palette

Credits

Font

https://madmalik.github.io/mononoki/

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NAMES = [...]string{"gather", "interact", "landscape", "spawn", "patrol"}
)

Functions

func ColorPaletteCsv

func ColorPaletteCsv(csvFile string) map[string]color.RGBA

func PngParse

func PngParse(pngFile string, cPalette map[string]color.RGBA) (map[string][][2]int32, error)

file names should contain "landscape", "gather", "interact", "spawn", or "patrol"

func ReferencesCreate

func ReferencesCreate()

func ZoneDirParse

func ZoneDirParse(dir string) (gather, landscape, patrol, spawn map[string][][2]int32, err error)

Directory should have all the zone png, as well as csv palettes (when not using defaults)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL