首页 > 文档 > point()点
2017
07-28

point()点

Name

point()

   

Examples

point()点 - 第1张  | Processing编程艺术

noSmooth();

point(30, 20);

point(85, 20);

point(85, 75);

point(30, 75);

point()点 - 第2张  | Processing编程艺术

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

x

float: x-coordinate of the point

 

浮点型:点的X坐标

y

float: y-coordinate of the point

浮点型:点的y坐标

z

float: z-coordinate of the point

 

浮点型:点的z坐标

Returns

void

Related

stroke()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。