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


Name

curve()

Examples
example pic
stroke(255, 102, 0);
curve(5, 26, 5, 26, 73, 24, 73, 61);
stroke(0); 
curve(5, 26, 73, 24, 73, 61, 15, 65); 
stroke(255, 102, 0);
curve(73, 24, 73, 61, 15, 65, 15, 65);
Description スクリーンに曲線を描画します。 第1座標で最初のアンカーポイントを指定、第4座標でもう片方のアンカーポイントを指定します。 第2座標、及び第3座標を経由することにより曲線の形を制御します。 複数の curve() をまとめて使うことにより長めの線を引くことができます。 curveTightness() と呼ばれる追加関数は曲線の視覚品質のためのコントロールを提供します。 curve() はCatmull-Romスプライン曲線を実現したものです。 P3D か OPENGL レンダラーでレンダリングする必要があります。 (詳細はEnvironmentリファレンスを見てください)
Syntax
curve(x1, y1, x2, y2, x3, y3, x4, y4);
curve(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4);
Parameters
x1, y1, z1 int or float: coordinates for the first anchor
x2, y2, z2 int or float: coordinates for the first point
x3, y3, z3 int or float: coordinates for the second point
x4, y4, z4 int or float: coordinates for the second anchor
Usage Web & Application
Related curveVertex()
bezier()
Updated on September 23, 2006 05:40:19pm PDT

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

© 2007 Processing.org