focused

本参考资料用于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.

名称

focused

示例
 if (focused)
{  // or "if (focused == true)"   ellipse(25, 25, 50, 50);


  } else{  
line(0, 0, 100, 100);


line(100, 0, 0, 100);


  } 
描述 Confirms if a Processing program is “focused,” meaning that it is active and will accept mouse or keyboard input. This variable is “true” if it is focused and “false” if not.

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

focused