Update index.php

As I said in my other comment, not a biggie, just to help people in php 5.3 not have an error spat out at them when trying to useyour 2D examples that use 'black' as the color and not an array of RGB like you have setup in your as your color variable default value in the actual method.

Cheers,

Alex