Paket | spark.effects.interpolation |
Klass | public class RGBInterpolator |
Arv | RGBInterpolator Object |
Implementerar | IInterpolator |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Metod | Definieras med | ||
---|---|---|---|
Constructor. | RGBInterpolator | ||
Returns the result of the two values subtracted
on a per-channel basis. | RGBInterpolator | ||
[statisk]
Returns the singleton of this class. | RGBInterpolator | ||
Anger om det finns en egenskap angiven för ett objekt. | 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 | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
RGBInterpolator | () | Konstruktor |
public function RGBInterpolator()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
decrement | () | metod |
public function decrement(baseValue:Object, decrementValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Parametrar
baseValue:Object — The start value of the interpolation.
| |
decrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
getInstance | () | metod |
public static function getInstance():RGBInterpolator
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
ReturnerarRGBInterpolator — The singleton of this class.
|
increment | () | metod |
public function increment(baseValue:Object, incrementValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Parametrar
baseValue:Object — The start value of the interpolation.
| |
incrementValue:Object — The change to apply to the baseValue .
|
Object — The interpolated value.
|
interpolate | () | metod |
public function interpolate(fraction:Number, startValue:Object, endValue:Object):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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
.
Parametrar
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, 01:40 PM Z