The Oh No sound that plays with undo has lived rent free in my head for 20years now.
Kid Pix as a JavaScript App
61–70 of 94 posts
Re: Kid Pix as a JavaScript App
#62function ziggurat() { return ((Math.random() + Math.random() + Math.random() + Math.random() + Math.random() + Math.random()) - 3) / 3; }
https://github.com/vikrum/kidpix/blob/9385acf5b3f57cdc8c5b3f...
Re: Kid Pix as a JavaScript App
#63Anyone think they can explain this in the source code? function ziggurat() { return ((Math.random() + Math.random() + Math.random() + Math.random() + Math.random() + Math.random()) - 3) / 3; } https://github.com/vikrum/kidpix/blob/9385acf5b3f57cdc8c5b3f...
Re: Kid Pix as a JavaScript App
#64Anyone think they can explain this in the source code? function ziggurat() { return ((Math.random() + Math.random() + Math.random() + Math.random() + Math.random() + Math.random()) - 3) / 3; } https://github.com/vikrum/kidpix/blob/9385acf5b3f57cdc8c5b3f...
Looks like a way to purposefully create a biased (center-weighted) random number generator out of multiple calls.
Re: Kid Pix as a JavaScript App
#65I like it. I think it's missing the option to increase the stamp sizes though? What I really liked about Kid Pix was the ability to make animations through the slideshow mode. You could put together up to 100 pictures in a slideshow and set the time per slide to < 1 second to create animations.
Holding Shift doubles the stamp size. I think this is accurate to the original implementation.
> What I really liked about Kid Pix was the ability to make animations through the slideshow mode.
That must have been in a later version. I don't remember that existing.
Re: Kid Pix as a JavaScript App
#66Earlier quoted context omitted.
Looks like a way to purposefully create a biased (center-weighted) random number generator out of multiple calls.
Mathematically is the sum of six Math.random() any different than (Math.random() * 6)?
Re: Kid Pix as a JavaScript App
#67Earlier quoted context omitted.
Looks like a way to purposefully create a biased (center-weighted) random number generator out of multiple calls.
Mathematically is the sum of six Math.random() any different than (Math.random() * 6)?
Even crazier: the sum of six (Math.random()>.5)?0:1 will also look a bit like a normal distribution, rather than just 0 50% of the time and 6 50% of the time.
Central Limit Theorem eats distributions of all shapes and sizes and shits gaussians. That's why you see normal distributions everywhere.
Re: Kid Pix as a JavaScript App
#68I used to enjoy this application as a kid. These days, I'd be wary of putting "kid pix" into google search to relive my memories.