added 3bit colour mapping.