Skip to content

Uses write_svg() to create an SVG image for a cast, in a temporary file, and then previews a minimal HTML file with the SVG image, in the default browser.

Usage

play(cast, ...)

Arguments

cast

asciicast object

...

Additional arguments are passed to write_svg().

Value

The path of the temporary SVG file, invisibly.

See also

Other SVG functions: default_theme(), write_svg()

Examples

if (FALSE) { # interactive()
cast <- read_cast(system.file("examples", "hello.cast", package = "asciicast"))
play(cast)
}