Processing (BETA) version 135+ のリファレンスです。 旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。 最新の内容は 英語版 で確認して下さい。


Name

curvePoint()

Examples
example pic
curve(5, 26, 5, 26, 73, 24, 73, 61);
curve(5, 26, 73, 24, 73, 61, 15, 65); 
ellipseMode(CENTER);
int steps = 6;
for (int i = 0; i <= steps; i++) {
  float t = i / float(steps);
  float x = curvePoint(5, 5, 73, 73, t);
  float y = curvePoint(26, 26, 24, 61, t);
  ellipse(x, y, 5, 5);
  x = curvePoint(5, 73, 73, 15, t);
  y = curvePoint(26, 24, 61, 65, t);
  ellipse(x, y, 5, 5);
}
Description ポイントa、b、c、dのためのポイントtで曲線を評価します。 t パラメタは 0 から 1 の間で変化します。 a と d は曲線上の点で、b と c は制御点です。 始めにx座標、次にy座標で行うことでで曲線の位置を得ることができます。
Syntax
curvePoint(a, b, c, d, t)
Parameters
a int or float: coordinate of first point on the curve
b int or float: coordinate of second point on the curve
c int or float: coordinate of third point on the curve
d int or float: coordinate of fourth point on the curve
t float: value between 0 and 1
Usage Web & Application
Related curve()
curveVertex()
bezierPoint()
Updated on September 23, 2006 05:40:18pm PDT

Creative Commons License

この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org