trapezoid#

创建一个梯形#

图块代码

../../_images/trapezoid.png

javascript

jih_doc.trapezoid(op, top_w, bottom_w, hight, depth, color)

python

jih_doc.trapezoid(op, top_w, bottom_w, hight, depth, color)

npl

jih_doc:trapezoid(op, top_w, bottom_w, hight, depth, color)

参数#

参数

类型

默认值

说明

op

string

“union”

top_w

number

2

bottom_w

number

10

hight

number

10

depth

number

0.5

color

string

“#ffc658”

示例#

jih_doc.trapezoid("union", 2, 10, 10, 0.5, "#ffc658")
jih_doc.trapezoid("union", 2, 10, 10, 0.5, "#ffc658")
jih_doc:trapezoid("union", 2, 10, 10, 0.5, "#ffc658")