One Logo Pool Ball
CoreImage · IOS API REFERENCE

CIColor

class · iOS 5.0+ · SDK 27.1

class CIColor

Members (24)

init · iOS 5.0+

init

TypeScript
static initRedGreenBlue(red: number, green: number, blue: number): CIColor
Swift declaration
convenience init(red: CGFloat, green: CGFloat, blue: CGFloat)
init · iOS 5.0+

init

TypeScript
static initString(representation: string): CIColor
Swift declaration
convenience init(string representation: String)
get · iOS 10.0+

black

TypeScript
static get black(): CIColor
Swift declaration
class var black: CIColor { get }
get · iOS 10.0+

blue

TypeScript
static get blue(): CIColor
Swift declaration
class var blue: CIColor { get }
get · iOS 10.0+

clear

TypeScript
static get clear(): CIColor
Swift declaration
class var clear: CIColor { get }
get · iOS 10.0+

cyan

TypeScript
static get cyan(): CIColor
Swift declaration
class var cyan: CIColor { get }
get · iOS 10.0+

gray

TypeScript
static get gray(): CIColor
Swift declaration
class var gray: CIColor { get }
get · iOS 10.0+

green

TypeScript
static get green(): CIColor
Swift declaration
class var green: CIColor { get }
get · iOS 10.0+

magenta

TypeScript
static get magenta(): CIColor
Swift declaration
class var magenta: CIColor { get }
get · iOS 10.0+

red

TypeScript
static get red(): CIColor
Swift declaration
class var red: CIColor { get }
get · iOS 10.0+

white

TypeScript
static get white(): CIColor
Swift declaration
class var white: CIColor { get }
get · iOS 10.0+

yellow

TypeScript
static get yellow(): CIColor
Swift declaration
class var yellow: CIColor { get }
init · iOS 5.0+

init

TypeScript
static initCgColor(color: _CoreGraphics_CGColor): CIColor
Swift declaration
init(cgColor color: CGColor)
init · iOS 5.0+

init

TypeScript
static initRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): CIColor
Swift declaration
convenience init(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
init · iOS 10.0+

init

TypeScript
static initRedGreenBlueAlphaColorSpace(red: number, green: number, blue: number, alpha: number, colorSpace: _CoreGraphics_CGColorSpace): (CIColor) | null
Swift declaration
convenience init?(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat, colorSpace: CGColorSpace)
init · iOS 10.0+

init

TypeScript
static initRedGreenBlueColorSpace(red: number, green: number, blue: number, colorSpace: _CoreGraphics_CGColorSpace): (CIColor) | null
Swift declaration
convenience init?(red: CGFloat, green: CGFloat, blue: CGFloat, colorSpace: CGColorSpace)
get · iOS 5.0+

alpha

TypeScript
get alpha(): number
Swift declaration
var alpha: CGFloat { get }
get · iOS 5.0+

blue

TypeScript
get blue80112(): number
Swift declaration
var blue: CGFloat { get }
get · iOS 5.0+

colorSpace

TypeScript
get colorSpace(): _CoreGraphics_CGColorSpace
Swift declaration
var colorSpace: CGColorSpace { get }
get · iOS 5.0+

components

TypeScript
get components(): "animatableData" | SDKHandle
Swift declaration
var components: UnsafePointer<CGFloat> { get }
get · iOS 5.0+

green

TypeScript
get green44967(): number
Swift declaration
var green: CGFloat { get }
get · iOS 5.0+

numberOfComponents

TypeScript
get numberOfComponents(): number
Swift declaration
var numberOfComponents: Int { get }
get · iOS 5.0+

red

TypeScript
get red50843(): number
Swift declaration
var red: CGFloat { get }
get · iOS 5.0+

stringRepresentation

TypeScript
get stringRepresentation(): string
Swift declaration
var stringRepresentation: String { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CIColor.init()

inherited init: cannot prove legal (class declares 8 custom initializers)

All CoreImage types →