Skip to content

capture controllers

NHibiki edited this page Dec 4, 2018 · 1 revision

Capture Class

Manual

Controllers

Controllers to control on the record state of capture.

capture.start()

To start record the frames in the background.

var recorder = p5Gif.capture();
    recorder.start();

capture.stop()

To stop the capturing immediately (the record cannot be started again)

var recorder = p5Gif.capture();
    recorder.start();
    
    ... // some code here
    
    recorder.stop();

capture.pause() / capture.resume()

To pause recording the frames immediately, (in this case, you can start again (with resume) to continue recording later)

var recorder = p5Gif.capture();
    recorder.start();

    ... // some code here

    recorder.pause();

    ... // some code here

    recorder.resume();

Cheers

NHibiki

Clone this wiki locally