Quartz Composer Book Chapter 2
Quartz Composer Bookのチュートリアルに従って勉強始めたのでメモ。
■感想
もの凄く簡単に作れる。
コードを書かなくても良いという一方で、大量に用意されているパッチの使い道を知るのが大変かも。
フレームワークが強力すぎると楽チンな反面、学習コストが上昇するというStrutsやRonRと同じ問題がどこにでもあるのかなぁ、という気がする。
■Chapter2で利用したパッチ
復習も兼ねてQuartz Composerの解説をてきとーに訳しておく
Gradient
Renders an horizontal or vertical gradient shading that covers the entire rendering destination and varies between three colors - starting, middle, and ending. This patch also clears the depth buffer.Assuming the "Blending" input is set to "None", you can use Gradient instead of Clear to clear the rendering destination.
水平方向、垂直方向に画面全体を覆うグラデーションを描画するパッチです。3つのカラーコード、開始、真ん中、終了を数値で指定します。またこのパッチを使うことで深度バッファがクリアされます。
BlendingインプットをNoneに指定すれば、レンダリング出力をクリアするのに用いるClearパッチの代用として使えます。
# あー、カラーコードを3つ指定するのはこういうことだったのね。
LFO
This patch generates a low-frequency oscillation.All the parameters of the wave used for the oscillation can be customized: type, period, phase, offset and amplitude.
The minimum and maximum values reached by the wave are defined by (offset - amplitude) and (offset + amplitude).
Low Frequency Oscillation(低周波振動)を発生させるパッチです。
波形パラメータ、種類、時間、位相、オフセット、振動幅の全ての値を変更可能です。
波形の最小値は(オフセット - 振動幅)、最大値は(オフセット + 振動幅)で決まります。
# シンセサイザーのLFOと同じ?ですよね?
# 二つの波形で円運動を表現できる、とか言われても算数苦手なおいらには良く分かりませんでした・・orz
# 数学を勉強し直さないといかんです。サインとかコサインとか。
Sprite
This patch renders a single quad with optionaly antialiased borders.The image on the quad is multiplied by the color set on the "Color" input and can be combined with a mask using the optional "Mask Image" input (the mask will be resized to match the image's size).
Note that the Billboard patch is a simplified version of Sprite with fewer parameters and which is especially suited for 2D drawing.
四角形を生成するパッチです。オプションで境界をアンチエイリアス処理することもできます。
描画した四角形は「Color」で指定した色コードの乗算値で表示されます。また「Mask Image」インプットに指定した画像でマスクもできます。(マスクはイメージのサイズに合うよう、リサイズされます)
BillboardパッチはSpiriteのパラメータを簡略化したもので、二次元の描画に最適化したパッチです。
Interpolation
This patch interpolates between two numerical values over time.The curve used for the interpolation can be chosen among presets (linear, quadratic, exponential...) or defined manually through a cubic spline using up to 16 control points.
The duration of the interpolation and its looping mode can also be specified.
開始値から終了値までの間の数値を生成するパッチです。
和訳すんの面倒だなぁ。数値の補完はプリセット形状(リニア、二次関数、指数関数...)から選択するか、最大16点のキーで三次関数で指定することもできます。補完の時間、及びループモードも設定することができます。
# 関数とかも苦手です。。。えぇ。。
# なんか、前途多難になってきた気がしました。
# グラフィックプログラミング以前の問題w
# 自分はPerlやRubyでテキスト処理している方が向いているようです・・・ orz
コメント