play: Play a video

View source: R/RcppExports.R

playR Documentation

Play a video

Description

A very basic video player. Press the space bar to pause and ESC to close. Note that you need X11 library to use this function.

Usage

play(vid, loop = FALSE, delay = 30L, normalise = TRUE)

Arguments

vid

A cimg object, to be played as video

loop

loop the video (default false)

delay

delay between frames, in ms. Default 30.

normalise

if true pixel values are rescaled to 0...255 (default TRUE). The normalisation is based on the *first frame*. If you don't want the default behaviour you can normalise by hand. Default TRUE.


imager documentation built on May 29, 2024, 1:38 a.m.