Trying to use .flipImage() in p5 instance mode and I get an error.
Author: vennsohCreated Dec 1, 2020Updated Dec 9, 2024
LabelsbugAPI
Create a new issue from this. https://github.com/ml5js/ml5-library/issues/717
I'm getting an error saying
a.default.p5Instance.createGraphics is not a function... when I try to use the .flipImage() function from ml5 in p5 instance mode.
Here is the demo to demonstrate that. https://codesandbox.io/s/romantic-brattain-hxinl?file=/src/sketch.js
Recreating this example from the ml5 website https://learn.ml5js.org/#/reference/utils?id=flipimage BUT in instance mode.
In the example, if I try to use .flipImage() it won't work.
I'm using p5 instance mode for in order to integrate p5 with React.
Originally posted by @vennsoh in https://github.com/ml5js/ml5-library/issues/717#issuecomment-735233648
Source: ml5js/ml5-library