首页 > 文档 > ellipse()椭圆
2017
07-28

ellipse()椭圆

Name

ellipse()椭圆

   

Examples

ellipse()椭圆 - 第1张  | Processing编程艺术

ellipse(56, 46, 55, 55);

Description

Draws an ellipse (oval) to the screen. An ellipse with equal width and height is a circle. By default, the first two parameters set the location, and the third and fourth parameters set the shape’s width and height. The origin may be changed with the ellipseMode() function.

将椭圆 (椭圆形) 绘制到屏幕。宽度和高度相等的椭圆是一个圆。默认情况下, 前两个参数设置位置, 第三和第四参数设置形状的短轴和长轴。可以使用 ellipseMode () 函数更改原点。

Syntax

ellipse(a, b, c, d)

Parameters

a

float: x-coordinate of the ellipse

浮点型: 椭圆的 x 坐标

b

float: y-coordinate of the ellipse

浮点型: 椭圆的 y坐标

c

float: width of the ellipse by default

椭圆的短轴

d

float: height of the ellipse by default

 

椭圆的长轴

Returns

void

Related

ellipseMode()
arc()



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

留下一个回复

你的email不会被公开。