Documentation ¶
Index ¶
- Variables
- func AddNumberShortcuts(max int)
- 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 Pos(r render.Renderable, xpos, ypos float64) render.Renderable
- func SetDims(w, h float64)
- func SetTitleFont(f *render.Font)
- func Start(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 FontMod
- type Slide
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Express = (&render.FontGenerator{ File: fpFilter("expressway rg.ttf"), }).Generate() Gnuolane = (&render.FontGenerator{ File: fpFilter("gnuolane rg.ttf"), }).Generate() Libel = (&render.FontGenerator{ File: fpFilter("libel-suit-rg.ttf"), }).Generate() )
Loaded Fonts
Functions ¶
func AddNumberShortcuts ¶
func AddNumberShortcuts(max int)
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.