diff options
Diffstat (limited to 'iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h')
-rw-r--r-- | iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h new file mode 100644 index 0000000..95d2331 --- /dev/null +++ b/iosApp/WhirlyGlobeMaplyComponent.xcframework/ios-arm64_x86_64-simulator/WhirlyGlobeMaplyComponent.framework/Headers/MaplyColorRampGenerator.h @@ -0,0 +1,42 @@ +// +// MaplyColorRampGenerator.h +// WhirlyGlobe-MaplyComponent +// +// Created by Steve Gifford on 4/20/16. +// +// + +#import <UIKit/UIKit.h> + +/** The color ramp generator will take a set of color values + and generate a linear ramp of those colors in an output + image. You typically feed the color ramp image into a shader. + */ +@interface MaplyColorRampGenerator : NSObject + +// If set we'll stretch the colors out to the whole image +// On by default. +@property (nonatomic,assign) bool stretch; + +/// Add a color as a hex value. +- (void)addHexColor:(int)hexColor; + +/// This color has an alpha too +- (void)addHexColorWithAlpha:(int)hexColor; + +/// A color that's present in only one entry +- (void)addSingleEntryColor:(UIColor *)color; + +/// Add a color as a UIColor +- (void)addColor:(UIColor *)color; + +/// Add color with values expressed as integers 0-255 +- (void)addByteRed:(int)red green:(int)green blue:(int)blue alpha:(int)alpha; + +/// Generate the image with the color ramp in it +- (UIImage *)makeImage:(CGSize)size; + +/// Get a list of colors (rather than generating an image) +- (NSArray *)getColors; + +@end |