Documentation ¶
Index ¶
- Variables
- type Path
- func (p Path) Complete() Path
- func (p Path) CurveDiff(points []sgmmath.Point, dx, dy float64) Path
- func (p Path) HorLine(x float64) Path
- func (p Path) LineTo(x, y float64) Path
- func (p Path) LineToPoint(point sgmmath.Point) Path
- func (p Path) MoveTo(x, y float64) Path
- func (p Path) MoveToPoint(point sgmmath.Point) Path
- func (p *Path) String() string
- func (p *Path) Translate(point sgmmath.Point)
- func (p Path) VertLine(y float64) Path
- type PathElement
- type RenderOptions
- type Renderer
- type StarAdjacency
- type StarAdjacencyList
- type StarGeoIndex
- type Style
- type StyleOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCountryBorderColor = "#202020" DefaultCountryFillColor = "#c0c0c0" )
Functions ¶
This section is empty.
Types ¶
type RenderOptions ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(state *sgm.GameState, opts RenderOptions) *Renderer
func (*Renderer) WriteToBytes ¶
type StarAdjacency ¶
type StarAdjacencyList ¶
type StarAdjacencyList []StarAdjacency
func (StarAdjacencyList) Len ¶
func (l StarAdjacencyList) Len() int
func (StarAdjacencyList) Less ¶
func (l StarAdjacencyList) Less(i, j int) bool
func (StarAdjacencyList) Swap ¶
func (l StarAdjacencyList) Swap(i, j int)
type StarGeoIndex ¶
type StarGeoIndex map[sgm.StarId]StarAdjacencyList
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
func NewStyle ¶
func NewStyle(opts ...StyleOption) Style
func (Style) With ¶
func (s Style) With(opts ...StyleOption) Style
type StyleOption ¶
Click to show internal directories.
Click to hide internal directories.