Documentation
¶
Index ¶
- Variables
- func DrawMap(saveData *polytopiamapmodel.PolytopiaSaveOutput, highlightedTileX int, ...) image.Image
- func GetPlayerColor(playerData polytopiamapmodel.PlayerData) color.RGBA
- func GetTileCoordinates(pixelX int, pixelY int, mapWidth int, mapHeight int) (int, int)
- func SaveImage(outputFilename string, im image.Image)
- type GraphicsOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NeighborOffset = [4][2]int{{0, 1}, {-1, 0}, {0, -1}, {1, 0}} NeighborOffsetWithDiagonals = [8][2]int{{0, 1}, {1, 1}, {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}} )
Functions ¶
func DrawMap ¶
func DrawMap( saveData *polytopiamapmodel.PolytopiaSaveOutput, highlightedTileX int, highlightedTileY int, graphicsOptions GraphicsOptions, ) image.Image
func GetPlayerColor ¶
func GetPlayerColor(playerData polytopiamapmodel.PlayerData) color.RGBA
func GetTileCoordinates ¶
Types ¶
type GraphicsOptions ¶
Click to show internal directories.
Click to hide internal directories.