Describes the drawing style for one-dimensional entities such as polylines.
|Creates a solid color stroke style. |
|Creates a gradient stroke style interpolating from |
|A repeated image over the stroke to allow a user to set a 2D texture on top of a stroke. |
Member Function Documentation
|+ (instancetype) solidColor:||(UIColor *)||color|
Creates a solid color stroke style.
|+ (instancetype) gradientFromColor:||(UIColor *)||fromColor|
Creates a gradient stroke style interpolating from
A repeated image over the stroke to allow a user to set a 2D texture on top of a stroke.
If the image has transparent or semi-transparent portions, the underlying stroke color will show through in those places. Solid portions of the stamp will completely cover the base stroke.
Known issue: If this is a texture stamp set on a gradient stroke, only one of the stroke colors will be used. To still have a gradient, make the stroke color clear here, and have a separate polyline with the gradient below this line.