diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-02-05 19:17:10 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-02-05 19:17:10 -0600 |
commit | 3913ab898f2c2ecc3b638eca4681957b1cf74330 (patch) | |
tree | 55ff0108c6d7c1e60693f7c4c08e3b878c1f3ec7 /iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyColorRampGenerator.h | |
parent | c5e289dc4111fd23fbab4b4695d405b8fccea349 (diff) | |
download | etbsa-trackermap-mobile-3913ab898f2c2ecc3b638eca4681957b1cf74330.tar.gz etbsa-trackermap-mobile-3913ab898f2c2ecc3b638eca4681957b1cf74330.tar.bz2 etbsa-trackermap-mobile-3913ab898f2c2ecc3b638eca4681957b1cf74330.zip |
Removed SwiftUIFlowLayout dependency and updated WhirlyGlobe-Maply to latest develop version
Diffstat (limited to 'iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyColorRampGenerator.h')
-rw-r--r-- | iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyColorRampGenerator.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyColorRampGenerator.h b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.framework/Headers/MaplyColorRampGenerator.h new file mode 100644 index 0000000..95d2331 --- /dev/null +++ b/iosApp/WhirlyGlobe.xcframework/ios-arm64/WhirlyGlobe.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 |