refact: change opt.color and opt.opacity to color and opacity