Skip to content

Add contextual p5 support #14

Description

@infusion

Hello,

I typically run p5 myself and avoid adding p5 methods to the window object. That being said, p5.gif should have the option to use custom p5 contexts, such as:

new p5(function(p5) {
  p.setup = function() {
    recorder = p5Gif.capture({
      p5: p5
    });
  };
  p.draw = function() {
    recorder.addFrame();
  };

}, 'cont');

Thanks
Robert

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions