Live data from Hacker News

Exploring canvas drawing techniques

perfectionkills.com

31–36 of 36 posts

Re: Exploring canvas drawing techniques

#31

Earlier quoted context omitted.

more "spraycanny": http://codepen.io/anon/pen/utcLx

Approximating a normal distribution by summing three uniformly distributed random numbers is pretty clever. And it's a nice visual effect as well.

A nice illustration of the central limit theorem! http://en.wikipedia.org/wiki/Central_limit_theorem

This means there's nothing special about 3 - the more times you add uniforms together, the more normal it becomes. Also it doesn't matter if the uniform isn't uniform.

Re: Exploring canvas drawing techniques

#34
post #29
post #25

Earlier quoted context omitted.

That was super cool to use, and I totally create a digital version of my signature on my iPhone that I'm going to use! Awesome!

I had the same impulse, and then it struck me: maybe, just maybe, trying to replicate my hand-written signature on an unknown website that's obviously doing it's best to capture hand-writing is not the absolute best strategy, security-wise. Not saying the author of that pad is evil or anything, I just questioned my own impulse. And stopped drawing. :)

:) Well, it's open source, so you can check what it does and even run it locally without internet connection if you really want.

Good idea though, I'll have to add form for credit card details :)

Re: Exploring canvas drawing techniques

#35
post #18

Surprised you didn't rediscover using physics on the pen point. You might check out http://www.graficaobscura.com/dyna/

Interesting. Will check it out. Found Javascript adaptation at http://www.rogerandwendy.com/roger/dynadraw

I made a jsFiddle version. Easier for hacking the mass/drag/etc vars. http://jsfiddle.net/rogerallen/LCbpz/
Post reply on HN