minidraw

package
v0.0.0-...-63dc931 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package minidraw implements functions for drawing simple minimaps based on Nox maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinimapGray

func MinimapGray(m *maps.Map) *image.Gray

MinimapGray draws a simple gray minimap on a black background. Gray levels indicate different wall minimap groups.

func MinimapRGBA

func MinimapRGBA(m *maps.Map, bg color.Color) *image.RGBA

MinimapRGBA draws an RGBA minimap over a given background color. If no color is specified, the background will be transparent. Wall colors draw by the function indicate wall types, variations and minimap groups.

func MinimapRGBAFunc

func MinimapRGBAFunc(m *maps.Map, bg color.Color, fnc func(w *maps.Wall) color.RGBA) *image.RGBA

MinimapRGBAFunc draws an RGBA minimap. It uses a given background color and converts walls to pixels using fnc. Background color can be nil, in which case the minimap background will be transparent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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