Clamp opacity value to (0, 1)
Better documentation for weight option