# File lib/rubygame/surface.rb, line 235
  def colorkey
    if( (@struct.flags & Rubygame::SRCCOLORKEY) == Rubygame::SRCCOLORKEY )
      SDL::GetRGB(@struct.format.colorkey, @struct.format)
    else
      nil
    end 
  end