套件 | spark.effects.interpolation |
類別 | public class RGBInterpolator |
繼承 | RGBInterpolator Object |
實作 | IInterpolator |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
uint
start and end values that represent RGB colors.
Interpolation is done by treating
the start and end values as integers with color channel information in
the least-significant 3 bytes, and then interpolating each of the channels
separately.
方法 | 定義自 | ||
---|---|---|---|
Constructor. | RGBInterpolator | ||
Returns the result of the two values subtracted
on a per-channel basis. | RGBInterpolator | ||
[靜態]
Returns the singleton of this class. | RGBInterpolator | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Returns the result of the two values added
together on a per-channel basis. | RGBInterpolator | ||
Interpolation for the RGBInterpolator class takes the form of parametric
calculations on each of the bottom three bytes of
startValue and endValue. | RGBInterpolator | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
RGBInterpolator | () | 建構函式 |
public function RGBInterpolator()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
decrement | () | 方法 |
public function decrement(baseValue:Object, decrementValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the result of the two values subtracted on a per-channel basis. Each channel has a minimum value of 0 to avoid underflow problems.
參數
baseValue:Object — The start value of the interpolation.
| |
decrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
getInstance | () | 方法 |
public static function getInstance():RGBInterpolator
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the singleton of this class. Since all RGBInterpolators have the same behavior, there is no need for more than one instance.
傳回值RGBInterpolator — The singleton of this class.
|
increment | () | 方法 |
public function increment(baseValue:Object, incrementValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Returns the result of the two values added together on a per-channel basis. Each channel has a maximum value of 255 to avoid overflow problems.
參數
baseValue:Object — The start value of the interpolation.
| |
incrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
interpolate | () | 方法 |
public function interpolate(fraction:Number, startValue:Object, endValue:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Interpolation for the RGBInterpolator class takes the form of parametric
calculations on each of the bottom three bytes of
startValue
and endValue
.
參數
fraction:Number — The fraction elapsed of the
animation, between 0.0 and 1.0.
| |
startValue:Object — The start value of the interpolation.
| |
endValue:Object — The end value of the interpolation.
|
Object — The interpolated value.
|
Tue Jun 12 2018, 03:47 PM Z