MaplyColorRampGenerator
Objective-C
@interface MaplyColorRampGenerator : NSObject
Swift
class MaplyColorRampGenerator
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.
-
Undocumented
Declaration
Objective-C
@property (nonatomic) bool stretch
Swift
var stretch: Int32 { get set }
-
Add a color as a hex value.
Declaration
Objective-C
- (void)addHexColor:(int)hexColor;
Swift
func addHexColor(_ hexColor: Int32)
-
This color has an alpha too
Declaration
Objective-C
- (void)addHexColorWithAlpha:(int)hexColor;
Swift
func addHexColor(withAlpha hexColor: Int32)
-
A color that’s present in only one entry
Declaration
Objective-C
- (void)addSingleEntryColor:(id)color;
Swift
func addSingleEntryColor(_ color: Any!)
-
Add a color as a UIColor
Declaration
Objective-C
- (void)addColor:(id)color;
Swift
func addColor(_ color: Any!)
-
Add color with values expressed as integers 0-255
Declaration
Objective-C
- (void)addByteRed:(int)red green:(int)green blue:(int)blue alpha:(int)alpha;
Swift
func addByteRed(_ red: Int32, green: Int32, blue: Int32, alpha: Int32)
-
Generate the image with the color ramp in it
Declaration
Objective-C
- (id)makeImage:(CGSize)size;
Swift
func makeImage(_ size: Any!) -> Any!
-
Get a list of colors (rather than generating an image)
Declaration
Objective-C
- (NSArray *)getColors;
Swift
func getColors() -> Any!