Closed notwaldorf closed 2 years ago
I think I sorted it by moving all the actual work inside the returned function in sketch
, so:
const sketch = ({ width, height, units }) => {
return props => {
// Do the work, get some paths
return renderPaths(paths, {
...props,
lineWidth: 0.02
});
}
}
Hiya!
I'm using
canvas-sketch
withdat.gui
, so i'm used to callingsketchManager.render()
to re-render the canvas. This works great in non-plotter mode, but I've recently switched to usingrenderPaths
and I think I've borked my setup in the process, assketchManager.render()
doesn't call my main drawing function anymore. I'm like 90% sure that the problem is with what i'm returning fromsketch
, but I also don't know what it should be. Here's my setup:Thank you!! 🥰🙏