Module map

Source

Structsยง

GameMap
A struct representing a game map, from which we can create [Map] instances

Enumsยง

MapError

Constantsยง

LAND_COLOR ๐Ÿ”’
The color of the land on the map
NULL_COLOR ๐Ÿ”’
The color of the null pixels on the map
SCALE ๐Ÿ”’
The scale factor for the input map image
TEXT_COLOR ๐Ÿ”’
The color of the text drawn on the map
WATER_COLOR ๐Ÿ”’
The color of the water on the map

Traitsยง

MapGenerator
MapImage

Functionsยง

read_png_bytes ๐Ÿ”’
Returns a vector of bytes from a png file encoded with rgb8, meaning each pixel is represented by 3 bytes
serialize_into_b64 ๐Ÿ”’
serialize_title_color_map ๐Ÿ”’