[Core] Support opacities in ColorEngine.