ported parts of VisibleColor needed by this sim