首页 > 文档 > triangle()三角形
2017
07-28

triangle()三角形

Name

 

triangle()三角形

     

Examples

 

triangle()三角形 - 第1张  | Processing编程艺术

triangle(30, 75, 58, 20, 86, 75);

Description

 

A triangle is a plane created by connecting three points. The first two arguments specify the first point, the middle two arguments specify the second point, and the last two arguments specify the third point.

三角形是通过连接三点而创建的平面。前两个参数指定第一点, 中间两个参数指定第二点, 最后两个参数指定第三个点。

Syntax

 

triangle(x1, y1, x2, y2, x3, y3)

Parameters

 

x1

float: x-coordinate of the first point

 

浮点型:第一个点的X的坐标

y1

float: y-coordinate of the first point

浮点型:第一个点的Y的坐标

x2

float: x-coordinate of the second point

 

浮点型:第二个点的X的坐标

y2

float: y-coordinate of the second point

 

浮点型:第二个点的y的坐标

x3

float: x-coordinate of the third point

 

浮点型:第三个点的X的坐标

y3

float: y-coordinate of the third point

 

浮点型:第三个点的Y的坐标

Returns

 

void

Related

 

beginShape()



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

留下一个回复

你的email不会被公开。