| 対応バージョン |
|
|||||||||||||||||||||
| ポイント |
bObj[i].color = ["RGB",i*stp,i*stp,0]; | |||||||||||||||||||||
| 説 明 |
全てのしおりの色をグラデーションにするには、1をしおりの総数で除算します。その値をしおりの順番に乗算しcolorプロパティにカラー配列を設定します。 |
|||||||||||||||||||||
| サンプル |
bObj = bookmarkRoot.children; stp = 1; if (bObj.length > 0) stp = 1 / bObj.length; for (i=0; i<bObj.length; i++) { bObj[i].color = ["RGB",i*stp,i*stp,0]; } |
|||||||||||||||||||||
| |
■サンプルスクリプトを実行する >> Acrobat で動作確認 |
|||||||||||||||||||||
| 補足説明 |
なし |
|||||||||||||||||||||