The instructions for including p5 libraries just says to include them in the head file.
However, I’m using it instance mode, for use with react, like:
componentDidMount() {
import("p5").then((p5) => {
this.canvasPaint = new p5.default(sketch, this.refPaint.current);
this.canvasPaint.doUpdate(
this.props.controlPackage,
this.props.statePackage,
this.props.algorithms[this.props.selectedAlgo]
);
});
}
I now want to add p5-dom so I can do video capture stuff. Is this possible?
There is this github issue - but it doesn’t really answer the question.