Transparent-color-handling code normalized.