Hi! The above demo is made in Ruby using the Gosu framework and Cairo for 2d drawing. The smoothening code itself is quite simple, basically I'm adding segments to the curve every time mouse moves for certain distance and then just draw the splines :)
Hi! The above demo is made in Ruby using the Gosu framework and Cairo for 2d drawing. The smoothening code itself is quite simple, basically I'm adding segments to the curve every time mouse moves for certain distance and then just draw the splines :)
mr4k 1 year ago