Versions in this module Expand all Collapse all v0 v0.3.1 Oct 1, 2026 v0.3.0 Oct 1, 2026 Changes in this version + var ArrowColor = color.RGBA + var CompassHexColor = color.RGBA + var NorthColor = color.RGBA + var Positions = []string + var TextColor = color.RGBA + var TintSwatchColor = color.RGBA + type HexOrientation int + const FlatTop + const PointyTop + func OrientationOf(layout string) (HexOrientation, error) + type Overlays struct + Compass *Position + Legend *Position + type Placement struct + Compass image.Rectangle + Height int + LeftPanel image.Rectangle + Legend image.Rectangle + Map image.Rectangle + RightPanel image.Rectangle + Width int + func Decorate(mapImg *image.RGBA, m *hmz2map.Map, rep Report, opt Options, ov Overlays) (*image.RGBA, Placement, error) + type Position struct + Side Side + Vertical Vertical + func ParsePosition(s string) (Position, error) + func (p Position) String() string + type Side int + const Left + const Right + type Vertical int + const Bottom + const Middle + const Top v0.2.1 Oct 1, 2026 v0.2.0 Sep 29, 2026 Changes in this version + const ImpassableBlend + const MinApothem + const MouthScale + var BackgroundColor = color.RGBA + var BadlandsColor = color.RGBA + var BiomeColors = map[hmz2map.Biome]color.RGBA + var CliffsColor = color.RGBA + var CoastWaterColor = color.RGBA + var DepthColors = map[hmz2map.Depth]color.RGBA + var FreshWaterColor = color.RGBA + var InlandSeaColor = color.RGBA + var LandTints = map[hmz2map.Landform]int + var RiverColor = color.RGBA + var SurfaceColors = map[hmz2map.Surface]color.RGBA + var VolcanoColor = color.RGBA + func Check(m *hmz2map.Map) error + func FillColor(h *hmz2map.Hex) (color.RGBA, error) + func OutlineColor(c color.RGBA) color.RGBA + func Owners(g Geometry, ties *int) []int32 + func RiverWidth(size hmz2map.RiverSize, apothem int) (int, error) + func Version() semver.Version + type Geometry struct + A float64 + Apothem int + Columns int + Rows int + S float64 + func NewGeometry(columns, rows, apothem int) Geometry + func (g Geometry) Center(col, row int) (float64, float64) + func (g Geometry) Corner(col, row int, c hmz2map.Corner) (float64, float64) + func (g Geometry) HexDistance(x, y, x0, y0 float64) int64 + func (g Geometry) Size() (int, int) + type Options struct + Apothem int + Outlines bool + WetlandsAsLand bool + type Report struct + BackgroundPixels int + EdgesDrawn map[hmz2map.RiverSize]int + Height int + HexPixels int + Mouths map[hmz2map.RiverSize]int + OutlinePixels int + RiverPixels int + ShoreEdgesSkipped int + Ties int + WaterEdgesSkipped int + Width int + func Render(m *hmz2map.Map, opt Options) (*image.RGBA, Report, error)