Documentation
¶
Index ¶
- func ReadFileJSON(filename string, v interface{}) error
- func WriteFileJSON(filename string, v interface{}) error
- type ByCharacter
- type Character
- type ColorSetter
- type Drawer
- func (d *Drawer) Color() color.Color
- func (d *Drawer) DrawRune(cs ColorSetter, pos image.Point, r rune)
- func (d *Drawer) DrawText(cs ColorSetter, pos image.Point, text string)
- func (d *Drawer) RuneBounds() image.Rectangle
- func (d *Drawer) Scale() int
- func (d *Drawer) SetColor(c color.Color)
- func (d *Drawer) SetScale(scale int)
- func (d *Drawer) TextBounds(text string) image.Rectangle
- type FontInfo
- type Point
- type RuneInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileJSON ¶
func WriteFileJSON ¶
Types ¶
type ByCharacter ¶
type ByCharacter []RuneInfo
func (ByCharacter) Len ¶
func (s ByCharacter) Len() int
func (ByCharacter) Less ¶
func (s ByCharacter) Less(i, j int) bool
func (ByCharacter) Swap ¶
func (s ByCharacter) Swap(i, j int)
type Character ¶
type Character rune
func (Character) MarshalJSON ¶
func (*Character) UnmarshalJSON ¶
type ColorSetter ¶
type Drawer ¶
type Drawer struct {
// contains filtered or unexported fields
}
func (*Drawer) RuneBounds ¶
Click to show internal directories.
Click to hide internal directories.