Documentation ¶
Index ¶
- Variables
- func AddNumberShortcuts(max int)
- func FontColor(c color.Color) func(render.FontGenerator) render.FontGenerator
- func FontSize(size float64) func(render.FontGenerator) render.FontGenerator
- func Header(str string) render.Renderable
- func Image(file string, xpos, ypos float64) render.Modifiable
- func ImageAt(file string, xpos, ypos float64, mods ...mod.Mod) render.Modifiable
- func ImageCaption(file string, xpos, ypos float64, scale float64, f *render.Font, cap string) render.Renderable
- func ImageCaptionSize(file string, xpos, ypos float64, w, h float64, f *render.Font, cap string) render.Renderable
- func InitFonts() (err error)
- func Pos(r render.Renderable, xpos, ypos float64) render.Renderable
- func SetDims(w, h float64)
- func SetTitleFont(f *render.Font)
- func Start(width, height int, slides ...Slide)
- func Title(str string) render.Renderable
- func TxtAt(f *render.Font, txt string, xpos, ypos float64) render.Renderable
- func TxtFrom(f *render.Font, txt string, xpos, ypos float64) render.Renderable
- func TxtSetAt(f *render.Font, xpos, ypos, xadv, yadv float64, txts ...string) []render.Renderable
- func TxtSetFrom(f *render.Font, xpos, ypos, xadv, yadv float64, txts ...string) []render.Renderable
- func XPos(r render.Renderable, pos float64) render.Renderable
- func YPos(r render.Renderable, pos float64) render.Renderable
- type Slide
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddNumberShortcuts ¶
func AddNumberShortcuts(max int)
func FontColor ¶
func FontColor(c color.Color) func(render.FontGenerator) render.FontGenerator
FontColor sets the color on a font
func FontSize ¶
func FontSize(size float64) func(render.FontGenerator) render.FontGenerator
FontSize sets size on a font
func Image ¶
func Image(file string, xpos, ypos float64) render.Modifiable
Image renders a static image at a location
func ImageCaption ¶
func ImageCaption(file string, xpos, ypos float64, scale float64, f *render.Font, cap string) render.Renderable
ImageCaption creates caption text
func ImageCaptionSize ¶
func ImageCaptionSize(file string, xpos, ypos float64, w, h float64, f *render.Font, cap string) render.Renderable
ImageCaptionSize set the caption and its size
func Pos ¶
func Pos(r render.Renderable, xpos, ypos float64) render.Renderable
Pos sets the center x and y for a renderable
func TxtSetAt ¶
TxtSetAt creates text starting from a given location and advancing each text by an offset
func TxtSetFrom ¶
TextSetFrom draws a series of text with offsets from top right not left
func XPos ¶
func XPos(r render.Renderable, pos float64) render.Renderable
XPos sets the centered X pos of a renderable
func YPos ¶
func YPos(r render.Renderable, pos float64) render.Renderable
YPos sets the centered Y pos of a renderable
Types ¶
Click to show internal directories.
Click to hide internal directories.