NChartGradientStop Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | NChartGradientBrush.h |
Overview
The NChartGradientStop class provides a control point of the gradient defining some color and it’s position on the area being filled with a gradient. The gradient is constructed from multiple gradient-stops.
+ gradientStopWithColor:andOffset:
Create gradient stop with color and offset.
+ (NChartGradientStop *)gradientStopWithColor:(UIColor *)color andOffset:(float)offset
Parameters
color |
|
---|---|
offset |
|
Return Value
a new instance of the gradient stop.
Declared In
NChartGradientBrush.h
– initWithColor:andOffset:
Init gradient stop with color and offset
- (id)initWithColor:(UIColor *)color andOffset:(float)offset
Parameters
color |
|
---|---|
offset |
|
Return Value
inited instance of the gradient stop.
Declared In
NChartGradientBrush.h
color
Color of the gradient-stop.
@property (nonatomic, strong) UIColor *color
Declared In
NChartGradientBrush.h
offset
Offset of gradient-stop in the whole gradient. Offset is in interval 0..1. 0 means the start of the area filled with a gradient, 1 means the end of it. For example if you want to create a gradient of two colors, it’s common to use 0.0 as the offset for the first color and 1.0 for the second.
@property (nonatomic, assign) float offset
Declared In
NChartGradientBrush.h