https://sighack.com/post/chaikin-curves