インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

red()

   
Examples  
noStroke(); 
color c = color(0, 126, 255); 
fill(c); 
rect(15, 20, 35, 60); 
float value = red(c);  // "value" を"0"に設定 
fill(value); 
rect(50, 20, 35, 60); 
Description  

色から赤の値を抽出する。

 

   
Syntax  
red(color)
   
Parameters  
color   色データタイプの値

   
Returns   浮動少数点数
   
Usage   Web & Application
   
Related   green()
blue()
hue()
saturation()
brightness()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas