本参考资料用于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.
|描述||Draws shapes to the display window. Shapes must be in the sketch’s “data” directory to load correctly. Select “Add file…” from the “Sketch” menu to add the shape. Processing currently works with SVG, OBJ, and custom-created shapes. The shape parameter specifies the shape to display and the coordinate parameters define the location of the shape from its upper-left corner. The shape is displayed at its original size unless the c and d parameters specify a different size. The shapeMode() function can be used to change the way these parameters are interpreted.|
shape(shape) shape(shape, x, y) shape(shape, a, b, c, d)
Updated on October 2, 2018 05:02:09pm EDT