Name | bezierPoint()贝塞尔切点 | ||||||||||
Examples | noFill(); bezier(85, 20, 10, 10, 90, 90, 15, 80); fill(255); int steps = 10; for (int i = 0; i <= steps; i++) { float t = i / float(steps); float x = bezierPoint(85, 10, 90, 15, t); float y = bezierPoint(20, 10, 90, 80, t); ellipse(x, y, 5, 5); } |
||||||||||
Description | Evaluates the Bezier at point t for points a, b, c, d. The parameter t varies between 0 and 1, a and d are points on the curve, and b and c are the control points. This can be done once with the x coordinates and a second time with the y coordinates to get the location of a bezier curve at t. 关键点 a、b、c、d 的贝塞尔曲线。参数 t 在0和1之间变化, a 和 d 是曲线上的点, b 和 c 是控制点。这可以做一次与 x 坐标和第二次与 y 坐标得到的位置贝塞尔曲线在 t。 |
||||||||||
Syntax | bezierPoint(a, b, c, d, t) | ||||||||||
Parameters |
|
||||||||||
Returns | float | ||||||||||
Related | bezier() bezierVertex() curvePoint() |
- 本文固定链接: http://iprocessing.cn/2017/07/28/bezierpoint贝塞尔点/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表