Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsciiRender ¶
type AsciiRender struct {
// contains filtered or unexported fields
}
func NewAsciiRender ¶
func NewAsciiRender() *AsciiRender
func (*AsciiRender) LoadFont ¶
func (this *AsciiRender) LoadFont(fontPath string) error
walk through the path, load all the *.flf font file
func (*AsciiRender) Render ¶
func (this *AsciiRender) Render(asciiStr string) (string, error)
render with default options
func (*AsciiRender) RenderOpts ¶
func (this *AsciiRender) RenderOpts(asciiStr string, opts *RenderOptions) (string, error)
render with options
type RenderOptions ¶
type RenderOptions struct { FontName string // font name FontColor []color.Attribute // every ascii byte's color }
func NewRenderOptions ¶
func NewRenderOptions() *RenderOptions
Click to show internal directories.
Click to hide internal directories.