Name |
point()点 |
||||||||||
Examples |
noSmooth(); point(30, 20); point(85, 20); point(85, 75); point(30, 75);
size(100, 100, P3D); noSmooth(); point(30, 20, -50); point(85, 20, -50); point(85, 75, -50); point(30, 75, -50); |
||||||||||
Description |
Draws a point, a coordinate in space at the dimension of one pixel. The first parameter is the horizontal value for the point, the second value is the vertical value for the point, and the optional third value is the depth value. Drawing this shape in 3D with the z parameter requires the P3D parameter in combination with size() as shown in the above example. Use stroke() to set the color of a point(). 在一个像素的维度中绘制一个点, 一个空间坐标。第一个参数是点的水平值, 第二个值是点的垂直值, 可选的第三个值是深度值。使用 z 参数在3D 中绘制此形状要求 P3D 参数与大小 () 结合使用, 如上例所示。
使用描边 () 可设置点 () 的颜色。 |
||||||||||
Syntax |
point(x, y) point(x, y, z) |
||||||||||
Parameters |
|
||||||||||
Returns |
void |
||||||||||
Related |
- 本文固定链接: http://iprocessing.cn/2017/07/28/point点/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表