メインページ | パッケージ | クラス構成 | 索引 | ヘルプ

com.mosesSupposes.fuse

CustomEasing クラス

Object
  |
  +--com.mosesSupposes.fuse.CustomEasing


class CustomEasing
extends Object

Fuse Kit 2 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com This class must be registered to pass easing Arrays generated by the Custom Easing Tool.

使用法:
この最新の Custom Easing ツールは、もともとのソースである lmc_tween からは少し変更されています。最新版では、イージングのパラメーターとなる値を格納した単純な配列が生成されるようになっています。

カスタムイージングの生成・使用するためには、次の2ステップを実行してください:
  1. セットアップ時に、ZigoEngine.register もしくは、ZigoEngine.simpleSetup メソッドに CustomEasing クラスを登録します。
  2. Custom Easing Tool を使って配列を作成後、ZigoEngine か Fuse に、イージングパラメーターを指定します。

    例として、var customEasing:Array = [...];と出力パネルに表示されていれば、"easeInOutQuad" や、その他のイージング方法の代わりに、customEasing を使用することができます。もちろん変数名の変更も可能です。


Author:
Easing by Ladislav Zigo

Version:
2.0.5


Method Summary

static
fromCurve ( t: Number, b: Number, c: Number, d: Number, pl: Array ): Number
Generates custom easing from an array of curve points exported by the Custom Easing Tool.

static
precalced ( t: Number, b: Number, c: Number, d: Number, pl: Array ): Number
Returns the nearest match in an Array of precaculated values, by percent of duration completed.



Method Documentation

fromCurve

static function fromCurve(t: Number,
 b: Number,
 c: Number,
 d: Number,
 pl: Array): Number
Generates custom easing from an array of curve points exported by the Custom Easing Tool.

Parameters:
t
時間
b
開始位置
c
total change in position
d
トゥイーン継続時間
pl
事前に算出された値を格納した配列
Returns:
position

precalced

static function precalced(t: Number,
 b: Number,
 c: Number,
 d: Number,
 pl: Array): Number
Returns the nearest match in an Array of precaculated values, by percent of duration completed.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
pl
Array of precalculated values
Returns:
position


The documentation was generated from the following file:


Generated on 11/12/2006 3:29:13 PM