Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contextual p5 support #14

Open
infusion opened this issue Mar 3, 2019 · 2 comments
Open

Add contextual p5 support #14

infusion opened this issue Mar 3, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@infusion
Copy link

infusion commented Mar 3, 2019

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

@WenheLI WenheLI added the enhancement New feature or request label Mar 3, 2019
@WenheLI
Copy link
Owner

WenheLI commented Mar 3, 2019

@infusion I will add this support later. Since it may require some changes on the API, I need some time to figure it out.

@infusion
Copy link
Author

infusion commented Mar 3, 2019

No worries! Thanks a lot for your fast response on the issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants