BMKGradient.h 754 B

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