In the text of chapter 2 it mentions that colors are specified as an anonymous arrray like
[ $red, $green, $blue, $opacity ]
then later it talks about assigning colors to individual pixels using a hexadecimal number:
$surface->[$x][$y] = 0xFF0000FF;
Can an anonymous array be used here as well? Does this ...
$surface->[$x][$y] = [ 255, 0, 0, 255 ];
Well it can't right now. But it should, so let me go make that possible for the next release of SDL.
Done with http://bit.ly/dogcZk