Genuary 8: Single Curve

January 8, 2022

This is a sketch for Genuary 2022, which provides a creative coding prompt for each day of January. This is day 8: "Single curve only."

This dynamically generates a long, windy 3D Bézier curve. I give it thickness by sweeping a circle along the curve, mesh the shape, and save it to a P5.Geometry for efficiency. It's rendered with depth-of-field blur powered by a shader and the depth map of a p5.Framebuffer.