What's the best way to write on canvas?

Hey, guys.
I need to be able to write on the screen as close as possible to using a pen.
I’ve seen this demo which is as close as I can get.
Is it the right one to start with? Or is there another way to make it more accurate?

Thanks in advance, community.


great !!
thks for reply