Creates a color object using the RGBA color component values specified by a string.
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Image
A string that is in one of the formats returned by the
stringmethod. For example, the string:
.5 0 .7 0 .3 1 .0"
indicates an RGB color whose components are 50% red, 70% green, 30% blue, and 100% opaque (alpha value of
1). The string representation always has four components—red, green, blue, and alpha. The default value for the alpha component is
A Core Image color object that represents an RGB color in the color space specified by the Quartz 2D constant