show

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default size 12
	// Default color white
	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()
)

Functions

func AddNumberShortcuts

func AddNumberShortcuts(max int)
func Header(str string) render.Renderable

func Image

func Image(file string, xpos, ypos float64) render.Modifiable

func ImageAt

func ImageAt(file string, xpos, ypos float64, mods ...mod.Mod) render.Modifiable

func ImageCaption

func ImageCaption(file string, xpos, ypos float64, scale float64, f *render.Font, cap string) render.Renderable

func ImageCaptionSize

func ImageCaptionSize(file string, xpos, ypos float64, w, h float64, f *render.Font, cap string) render.Renderable

func Pos

func Pos(r render.Renderable, xpos, ypos float64) render.Renderable

func SetDims

func SetDims(w, h float64)

func SetTitleFont

func SetTitleFont(f *render.Font)

func Start

func Start(slides ...Slide)

func Title

func Title(str string) render.Renderable

func TxtAt

func TxtAt(f *render.Font, txt string, xpos, ypos float64) render.Renderable

func TxtFrom

func TxtFrom(f *render.Font, txt string, xpos, ypos float64) render.Renderable

func TxtSetAt

func TxtSetAt(f *render.Font, xpos, ypos, xadv, yadv float64, txts ...string) []render.Renderable

func TxtSetFrom

func TxtSetFrom(f *render.Font, xpos, ypos, xadv, yadv float64, txts ...string) []render.Renderable

func XPos

func YPos

Types

type FontMod

type FontMod func(*render.Font) *render.Font

func FontColor

func FontColor(c color.Color) FontMod

func FontSet

func FontSet(set func(*render.Font)) FontMod

func FontSize

func FontSize(size float64) FontMod

type Slide

type Slide interface {
	Init()
	Continue() bool
	Prev() bool
	Transition() scene.Transition
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL