RDSRgbColor.h 867 B

12345678910111213141516171819202122232425262728
  1. //
  2. // RDSRgbColor.h
  3. // LampRibbon
  4. //
  5. // Created by coderYK on 2017/8/24.
  6. // Copyright © 2017年 RD. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface RDSRgbColor : NSObject <NSCoding, NSCopying>
  10. + (instancetype)rds_rgbColorWithRgbArr:(NSArray *)array;
  11. + (instancetype)rds_colorWithR:(int)red G:(int)green B:(int)blue;
  12. + (instancetype)rds_colorWithRgbHexString:(NSString *)rgb_hex;
  13. @property (nonatomic, assign) int red;
  14. @property (nonatomic, assign) int green;
  15. @property (nonatomic, assign) int blue;
  16. @property (nonatomic, strong) NSString *rgb_hex; // ** 3个字节的rgb颜色*/
  17. @property (nonatomic, strong) NSString *red_hex;
  18. @property (nonatomic, strong) NSString *green_hex;
  19. @property (nonatomic, strong) NSString *blue_hex;
  20. @property (nonatomic, assign) int brightness; // ** 静态颜色或流光模式下的颜色亮度*/
  21. @end