Refactor #4125: Apply opacity, color getter/setter in samples