show

package
v2.3.3-beta Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 Header(str string) render.Renderable

Header draws a header for the slide

func Image

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

Image renders a static image at a location

func ImageAt

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

ImageAt creates an image, centers it and applies modifications

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 SetDims

func SetDims(w, h float64)

SetDims for the whole presentation global

func SetTitleFont

func SetTitleFont(f *render.Font)

SetTitleFont on the presentation

func Start

func Start(slides ...Slide)

func Title

func Title(str string) render.Renderable

Title draws a string as the title of a slide

func TxtAt

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

TxtAt creates string on screen at a given location

func TxtFrom

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

TxtFrom draws a new string starting from the right rather than the left

func TxtSetAt

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

TxtSetAt creates text starting from a given location and advancing each text by an offset

func TxtSetFrom

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

TextSetFrom draws a series of text with offsets from top right not left

func XPos

XPos sets the centered X pos of a renderable

func YPos

YPos sets the centered Y pos of a renderable

Types

type FontMod

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

FontMod modifies a font

func FontColor

func FontColor(c color.Color) FontMod

FontColor sets the color on a font

func FontSet

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

FontSet applies

func FontSize

func FontSize(size float64) FontMod

FontSize sets size on a font

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