show

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Express  *render.Font
	Gnuolane *render.Font
	Libel    *render.Font
)

Functions

func AddNumberShortcuts

func AddNumberShortcuts(max int)

func FontColor

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 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 InitFonts added in v3.1.0

func InitFonts() (err error)

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(width, height int, 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 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