Skip to content

[feature suggestion] Make default frame rate from p5js #14

@jcubic

Description

@jcubic

I'm not sure if this is possible but in my coding playground prototype:

https://p5.javascript.org.pl/amused-loan?template=none

To record a proper Gif I still need to put P5.capture code in my sketch. Capture frame rate should match frame rate from p5.js

If I want to capture the animation I need to copy paste p5.capture default config:

function setup() {
    createCanvas(400, 400);
    //noLoop();
    frameRate(5);
}

P5Capture.setDefaultOptions({
    disableUi: true,
    format: "gif",
    framerate: 5,
    quality: 0.5,
});

To not break the API, how about -1 value will mean that it should take frameRate from P5.js?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions