shader-park-examples icon indicating copy to clipboard operation
shader-park-examples copied to clipboard

Example for using with p5.js?

Open ffd8 opened this issue 1 year ago • 0 comments
trafficstars

Amazing project and the blend() of CSG is sooo nice!

I was trying to figure out how to integrate this with p5.js, searched and found an 'old' (from 2023) example here. However that's using v0.1.41, when using the latest v0.2.6, it returns the error createShaderPark is not defined, so I guess the API changed. Using the older version worked, however I'm sure docs have changed in the meantime. Thanks in advance for a tiny example of how one can do that similarsp = createShaderPark(()=>{) and sp.draw() if that's also still a thing. Would be amazing if that model could also accept p5.js' texture() or fill()/stroke() styling...!

ffd8 avatar Feb 22 '24 10:02 ffd8