powered by
Create animated SVG from an asciicast
write_svg( cast, path, window = NULL, start_at = NULL, end_at = NULL, at = NULL, cursor = NULL, rows = NULL, cols = NULL, padding = NULL, padding_x = NULL, padding_y = NULL, omit_last_line = NULL, theme = NULL )
asciicast object.
asciicast
Path to SVG file to create.
Render with window decorations.
Lower range of timeline to render in seconds.
Upper range of timeline to render in seconds.
Timestamp of single frame to render, in seconds. Alternatively it can be "end", to take a snapshot at the end of the cast, after all output is done.
"end"
Enable cursor rendering.
Height in lines.
Width in columns.
Distance between text and image bounds.
Distance between text and image bounds on x axis.
Distance between text and image bounds on y axis.
Whether to omit the last line of the cast. This often just the prompt, and sometimes it is not worth showing.
A named list to override the default theme (see default_theme()).
default_theme()
Other SVG functions: default_theme(), play()
play()
# NOT RUN { cast <- read_cast(system.file("examples", "hello.cast", package = "asciicast")) svg_file <- tempfile(fileext = ".svg") write_svg(cast, svg_file) # }
Run the code above in your browser using DataLab