Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyTile = image.NewAlpha(image.Rect(0, 0, 8, 16))
View Source
var Fallback = &fallback{}
Fallback is used when a FontTileSet cannot find a Glyph for a rune. By default Fallback is initialized to an internal fallback that implements Tiler such that all runes return EmptyTile.
Functions ¶
This section is empty.
Types ¶
type FontTileSet ¶
type FontTileSet struct { image.Rectangle // Glyphs maps a rune to a slice of alpha pixel data Glyphs map[rune][]uint8 }
func NewFontTileSet ¶
func NewFontTileSet() *FontTileSet
type Italics ¶
type Italics struct {
*FontTileSet
}
Italics wraps a TileSet, adding a 10 degree rotation to each character to kinda sorta halfway fake an italic character set. Also makes your text-based drawings look drunk.
type TileSet ¶
TileSet
func NewTileSet ¶
func NewTileSet() TileSet
func (TileSet) LoadTileFromFile ¶
Click to show internal directories.
Click to hide internal directories.