Documentation ¶
Index ¶
- Variables
- type Canvas
- func (c *Canvas) BlankCanvas() [][]rune
- func (c *Canvas) BlankCanvasAsString() string
- func (c *Canvas) PrintCanvas() [][]rune
- func (c *Canvas) PrintCanvasAsString() string
- func (c *Canvas) WithDimensions(width, height int) *Canvas
- func (c *Canvas) WithPaintChar(r rune, border CanvasBorder) *Canvas
- func (c *Canvas) WithWord(word ...Char) *Canvas
- type CanvasBorder
- type Char
- type Coordinates
Constants ¶
This section is empty.
Variables ¶
View Source
var CharacterApostrophe = Char{ PaintChar: '▓', Shade: '░', Coordinates: []Coordinates{ {0, 0, 2}, {0, 1, 1}, }, Next: 0, }
View Source
var CharacterG = Char{ PaintChar: '▓', Shade: '░', Coordinates: []Coordinates{ {5, 1, 6}, {3, 2, 2}, {10, 2, 3}, {2, 3, 2}, {1, 4, 2}, {0, 5, 2}, {0, 6, 2}, {0, 7, 2}, {4, 9, 7}, {10, 6, 5}, {12, 7, 2}, {11, 8, 3}, {2, 8, 2}, }, Next: 17, }
View Source
var CharacterL = Char{ PaintChar: '▓', Shade: '░', Coordinates: []Coordinates{ {0, 1, 3}, {2, 2, 2}, {2, 3, 2}, {2, 4, 2}, {2, 5, 2}, {2, 6, 2}, {2, 7, 2}, {2, 8, 2}, {3, 9, 3}, }, Next: 8, }
View Source
var CharacterO = Char{ PaintChar: '▓', Shade: '░', Coordinates: []Coordinates{ {3, 4, 5}, {1, 5, 2}, {0, 6, 2}, {0, 7, 2}, {1, 8, 2}, {8, 5, 2}, {9, 6, 2}, {9, 7, 2}, {8, 8, 2}, {3, 9, 5}, }, Next: 13, }
View Source
var CharacterRevG = Char{ PaintChar: '▓', Shade: '░', Coordinates: []Coordinates{ {4, 1, 6}, {2, 2, 3}, {0, 6, 5}, {1, 7, 2}, {1, 8, 3}, {4, 9, 7}, {10, 2, 2}, {11, 3, 2}, {12, 4, 2}, {13, 5, 2}, {13, 6, 2}, {13, 7, 2}, {11, 8, 2}, }, Next: 17, }
View Source
var LoggoLogo = []Char{CharacterL, CharacterApostrophe, CharacterO, CharacterRevG, CharacterG, CharacterO}
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct { Width int Height int PaintChar rune Word []Char CanvasBorder CanvasBorder }
func (*Canvas) BlankCanvas ¶
func (*Canvas) BlankCanvasAsString ¶
func (*Canvas) PrintCanvas ¶
func (*Canvas) PrintCanvasAsString ¶
func (*Canvas) WithDimensions ¶
func (*Canvas) WithPaintChar ¶
func (c *Canvas) WithPaintChar(r rune, border CanvasBorder) *Canvas
type CanvasBorder ¶
type Coordinates ¶
Click to show internal directories.
Click to hide internal directories.