Type Method

colorWithRed:green:blue:alpha:

Creates a color object using the specified RGBA color component values.

Declaration

+ (instancetype)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a;

Parameters

r

The value of the red component.

g

The value of the green component.

b

The value of the blue component.

a

The value of the alpha component.

Return Value

A Core Image color object that represents an RGB color, in the color space specified by the Quartz 2D constant kCGColorSpaceGenericRGB, with an alpha value.

See Also

Creating Color Objects

+ colorWithCGColor:

Creates a color object from a Quartz color.

+ colorWithRed:green:blue:

Creates a color object using the specified RGB color component values

+ colorWithString:

Creates a color object using the RGBA color component values specified by a string.

+ colorWithRed:green:blue:colorSpace:

Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space.

+ colorWithRed:green:blue:alpha:colorSpace:

Creates a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space.