| sd_read_preview | R Documentation |
Reads the latest preview PPM written by the running generation and returns
it as an sd_image list. Returns NULL if no preview exists yet (e.g.
generation has not produced a frame). Optionally writes a PNG copy.
sd_read_preview(path, png_path = NULL)
path |
The preview PPM path passed to |
png_path |
Optional path; if set, the frame is also written there as
PNG via |
An sd_image list (width, height, channel,
data), or NULL if unavailable.
sd_preview_start
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.