Removed the colorOf() method

Was never used, also there was a small but serious mistake in the code. I forgot to make it take a self argument before the obj argument.