Quartz Composer Book Chapter 2-3
やべー、Quartz Composer楽しすぎるw
さっきの続き。Quartz Composer Bookのチュートリアル3個目。
Iteratorを使ってパラメータをいじっているだけでもの凄く楽しい。思わず時間を忘れて没頭してしまいそうだ。いかんいかん。
復習
Iterator
This macro patch renders its subpatches a given number of times.Iterator it typically used to create loops in the composition similar to for() loops in programming languages. The number of iterations is specified by the "Iterations" input. The index of the current iteration can be passed to the subpatches by using an Iterator Variables patch inside this macro patch.
内包するサブパッチを指定した回数繰り返し描画させるマクロパッチです。
Iteratorはプログラミング言語におけるfor()ループ同様、ループを生成するものです。繰り返しの回数は「Iterations」インプットの値で指定します。このマクロパッチ内にIterator Variablesパッチを置くと、Iterator Variablesパッチの「current iteration」で繰り返しの現在位置を取得できます。
Iterator Variables
This patch returns the current state of its parent Iterator patch.Iterator Variables is a special patch to be used inside an Iterator macro patch. It returns the current iteration index (either as an integer or normalized to a [0,1] range) and the total number of iterations.
Iteratorの現在状態を取得するパッチです。
Iterator VariablesはIteratorマクロパッチ内で利用する特殊なパッチです。繰り返しの現在の位置(整数、あるいは0〜1の間の標準値)と、繰り返しの総個数を取得できます。
コメント