How to draw a spline: A ChatGPT case study
12 min readJun 25, 2023
Let’s use the task of drawing a spline in JS to see whether AI can beat humans
· I. The Process
∘ 0. Setup: The data
∘ 1. The baseline
∘ 2. How to draw a single-line spline
∘ 3. How to draw a spline with varying widths?
∘ 4. Human intelligence to the rescue: A solution
∘ 5. ChatGPT was very good at converting code
∘ 6. Human intuition to the rescue: Draw 3 splines
∘ 7. Fill in the…