Automatically handle a color switching between opaque and translucent.