Got color calculation and set working