true

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

true

示例
 rect(30, 20, 50, 50);

boolean b = true;

if (b == true)
{  
line(20, 10, 90, 80);

// This line is drawn
  } else{  
line(20, 80, 90, 10);

// This line is not drawn
  } 
描述 Reserved word representing the logical value “true”. Only variables of type boolean may be assigned the value true.
相关 false
boolean

Updated on October 2, 2018 05:02:16pm EDT

true