home.social

#lerp — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #lerp, aggregated by home.social.

  1. #Processing drawing infrastructure, out of the box, doesn't come with a "dashed line" primitive, or sophisticated line styles. Golan Levin and Tega Brain (Code as Creative Medium, 2021) propose writing a function for that as a small exercise. How to tackle it? How would you draw a dashed line if you only had a simple line() function for drawing?

    My first intuition I think would be to use #lerp to get intermediary points along the line. I have often used some kind of "lerp tuple" strategy for coordinates. What would you do?

    #creativeCoding #CACM