패키지 | spark.effects.interpolation |
클래스 | public class HSBInterpolator |
상속 | HSBInterpolator Object |
구현 | IInterpolator |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
uint
start and end values.
Interpolation is done by treating
the start and end values as integers with RGB color channel information in
the least-significant 3 bytes, converting these to HSB values, and
interpolating linearly for each of the h (hue), s (saturation),
and b (brightness) parameters.
Because this interpolator may perform more calculations than a
typical interpolator that is simply interpolating a given type,
specifically to convert the RGB start and end values, this
interpolator provides the option of supplying start and end values
to the constructor. If you specify the start and end RGB values, then
the conversions of these values is calculated once,
and does not need to be done at every future call to
the interpolate()
method during the animation.
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | HSBInterpolator | ||
Returns the result of the two RGB values added
together as HSB colors. | HSBInterpolator | ||
[정적]
Returns the singleton of this class. | HSBInterpolator | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Returns the result of the two RGB values added
together as HSB colors. | HSBInterpolator | ||
The interpolation for the HSBInterpolator class takes the form of parametric
calculations on each of the three values h (hue), s (saturation),
and b (brightness) of HSB colors derived from the start and end RGB colors. | HSBInterpolator | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
HSBInterpolator | () | 생성자 |
public function HSBInterpolator(startRGB:uint, endRGB:uint)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
The optional parameters for startRGB
and
endRGB
help to optimize runtime performance by
performing RGB to HSB conversions at construction time, instead of
dynamically with every call to the interpolate()
method.
startRGB:uint (default = NaN ) — The starting color, as an unsigned integer RGB value.
| |
endRGB:uint (default = NaN ) — The ending color, as an unsigned integer RGB value.
|
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 RGB values added together as HSB colors. Each value is converted to an HSB color first, and then each component (hue, saturation, and brightness) is treated individually. The saturation and brightness components are clamped to lie between 0 and 1, and the hue degrees are modulated by 360 to lie between 0 and 360.
매개 변수
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():HSBInterpolator
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 10, AIR 1.5 |
Returns the singleton of this class.
Note that the singleton of the HSBInterpolator class might be less useful than separate instances of the class because separate instances can take advantage of precalculating the RGB to HSB conversions for the start and end colors.
반환값HSBInterpolator — The singleton of the HSBInterpolator 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 RGB values added together as HSB colors. Each value is converted to an HSB color first, and then each component (hue, saturation, and brightness) will be treated individually. The saturation and brightness components are clamped to lie between 0 and 1, and the hue degrees are modulated by 360 to lie between 0 and 360.
매개 변수
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 |
The interpolation for the HSBInterpolator class takes the form of parametric calculations on each of the three values h (hue), s (saturation), and b (brightness) of HSB colors derived from the start and end RGB colors.
매개 변수
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:17 PM Z