Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = 1024 ScreenHeight = 1024 )
Variables ¶
View Source
var (
GolFont font.Face
)
Functions ¶
func DrawCenteredText ¶
Types ¶
type FractionalHex ¶
type FractionalHex struct {
// contains filtered or unexported fields
}
func (*FractionalHex) Round ¶
func (fh *FractionalHex) Round() *Hex
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
func NewLayout ¶
func NewLayout(orientation *Orientation, size, origin Point) *Layout
func (*Layout) GetCorners ¶
func (*Layout) HexCornerOffset ¶
func (*Layout) HexToPixel ¶
func (*Layout) PixelToHex ¶
func (l *Layout) PixelToHex(p Point) FractionalHex
Click to show internal directories.
Click to hide internal directories.