Creates a color object using the specified image object.
- iOS 2.0+
- tvOS 9.0+
- watchOS 2.0+
The image to use when creating the pattern color.
The pattern color.
You can use pattern colors to set the fill or stroke color just as you would a solid color. During drawing, the image in the pattern color is tiled as necessary to cover the given area.
By default, the phase of the returned color is 0, which causes the top-left corner of the image to be aligned with the drawing origin. To change the phase, make the color the current color and then use the
set function to change the phase.