In this two part challenge, I cover beginShape(), endShape(), and texture(), TRIANGLE_STRIP, QUAD_STRIP, and more. I combine these geometry functions with the Toxiclibs physics library to simulate a waving flag (with a unikitty image texture!)
Documentation for the Toxiclibs library
Playlist containing all of the Toxiclibs Verlet Physics tutorial videos in Processing (Java) and JavaScript with p5.js.
Livestream 86: More Inverse Kinematics + Texturing Cloth Simulation
by Mathieu Blanchette
by Jason Heglund