minor change to worldToColor function