ColorOpacityExt extension

on

Methods

setOpacity(double opacity) Color

Available on Color, provided by the ColorOpacityExt extension

Returns a new color with the given opacity (0.0 to 1.0). Replacement for the deprecated withOpacity method.