Logo FSBarV1_Archived

UnitGlyphPalettes Module

Default palettes and style values for the unit-glyph renderer (feature 028-unit-viz-language). Faction and team colors are kept in separate tables so identity information is never carried by a single color channel alone.

Functions and values

Function or value Description

defaultFactionPalette

Full Usage: defaultFactionPalette

Returns: FactionPalette

Default faction stroke palette. Tuned for distinguishability against the default map background and standard team fills.

Returns: FactionPalette

defaultTeamPalette

Full Usage: defaultTeamPalette

Returns: TeamPalette

Default team fill palette. Wraps the existing ColorMaps team colors with a fallback for unknown team IDs.

Returns: TeamPalette

defaults

Full Usage: defaults

Returns: UnitGlyphStyle

Default full style. Consumers override fields through `VizConfig`.

Returns: UnitGlyphStyle

withOverrides f

Full Usage: withOverrides f

Parameters:
Returns: UnitGlyphStyle

Convenience constructor for a custom style that inherits defaults.

f : UnitGlyphStyle -> UnitGlyphStyle
Returns: UnitGlyphStyle

Type something to start searching.