单军华
2018-05-04 7db6ba57b17fb7c0c364219750b14ee3d5cc351b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 *  BMKGradient.h
 *  BMapKit
 *
 *  Copyright 2013 Baidu Inc. All rights reserved.
 *
 */
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
///此类表示热力图渐变色
@interface BMKGradient : NSObject{
    
}
///渐变色用到的所有颜色数组,数组成员类型为UIColor
@property (nonatomic,strong) NSArray* mColors;
///每一个颜色的起始点数组,,数组成员类型为 [0,1]的double值, given as a percentage of the maximum intensity,个数和mColors的个数必须相同,数组内元素必须时递增的
@property (nonatomic,strong) NSArray* mStartPoints;
 
//渐变色的初始化方法,使用默认colorMapSize1000进行初始化
- (id)initWithColors:(NSArray*)colors startPoints:(NSArray*)startPoints;
@end