AppleCGGradient - UBogun/Xojo-iosLib GitHub Wiki
Inherits from AppleCFObject
Memory leak check: not yet done
Status: Complete, one alternative constructor missing
CGGradient is the CoreGraphics way of attaining smooth and fast color transitions. Please see the AppleCGContext reference too for ways to paint CGGradients.
Constructors
Constructor (Colors As AppleArray Of AppleCGColor, Locations As AppleArray Of Double, Colorspace As AppleCGColorSpace): Creates a new gradient with the colors in array colors. If you pass an array Locations (and not NIL), it should contain the same number of elements as colors with values between 0 and 1 indicating the position of the color in relation to the gradient's dimensions.
Constructor (Colors() As Color, opt. locations() As Double): The same as above, convenience constructor using Xojo data types.