use int for color
dont use mapping - crashes in release mode on windows :(