Playing Around with Code

I’m always messing around with code. Here are a few fun things I’ve been toying with lately. Keeping in mind that most of work is done behind the scenes, I ask you forgive the utilitarian look of of these examples.

Crayola and 3D math:

View the demo: http://jackinscoe.com/crayola/colortest.php

What would Van Gogh’s box of Crayola Crayons be filled with?

I was intrigued by a friend, Meggie McArthur’s idea to take classic pieces of artwork and analyze them figure out what the artist’s palate would look like in Crayola Crayons. I wrote the code as a proof of concept. The application uses three-dimensional math to map the palate of any image to the closet Crayola Crayon color.

How old is your dog…really?

View the demo: http://jackinscoe.com/dogage/

This little experiment stemmed from a conversation my wife and I had on a walk with our dogs. Everyone has always heard that 1 human year is equivalent to 7 dog years. This didn’t seem like it could possibly be accurate to me because different dog breeds have different life expectancies and human life expectancy has risen over the years as well.

Using JQuery as the javascript framework and JQuery UI for the sliders you can calculate your dog’s would be human age. The life expectancy for each breed was pulled from the AKC.