colorWithRed:green:blue:alpha:
RGBAでカラーを作成します。
+(CIColor *)colorWithRed:(float)r: green:(float)g: blue:(float)b: alpha:(float)a:
解説
RGBAでカラーを作成します。
返り値
( CIColor * )
なし
引数
( float )r
( float )g
( float )b
( float )a
フレームワーク
QuartzCore
クラス
CIColor
Class Methods
使用可能
10.4
参照
例文
CIColor *ciRGBAColor = [CIColor colorWithRed:0.2 green: 0.2 blue: 0.2 alpha:0.2]; NSLog(@"ciRGBAColor R = %f,G = %f,B = %f,A = %f",[ciRGBAColor red],[ciRGBAColor green],[ciRGBAColor blue],[ciRGBAColor alpha]);