Name | Type | Default | Description |
---|---|---|---|
red_multiplier | number | 1 | optional |
green_multiplier | number | 1 | optional |
blue_multiplier | number | 1 | optional |
alpha_multiplier | number | 1 | optional |
red_offset | number | 0 | optional |
green_offset | number | 0 | optional |
blue_offset | number | 0 | optional |
alpha_offset | number | 0 | optional |
Example
Example usage of ColorTransform.
// new ColorTransform
const {ColorTransform} = next2d.geom;
const colorTransform = new ColorTransform();
// set new ColorTransform
const {MovieClip} = next2d.display;
const movieClip = new MovieClip();
movieClip.transform.colorTransform = colorTransform;
Members
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.geom.ColorTransform
アルファ透明度チャンネル値に乗算する 10 進数値です。
A decimal value that is multiplied with the alpha transparency channel value.- Default Value:
- 1
アルファ透明度チャンネル値に alphaMultiplier 値を乗算した後に加算する数値です。
数値の範囲は -255 ~ 255 です。
A number from -255 to 255 that is added to the alpha transparency channel value after
it has been multiplied by the alphaMultiplier value.- Default Value:
- 0
青チャンネル値に乗算する 10 進数値です。
A decimal value that is multiplied with the blue channel value.- Default Value:
- 1
青チャンネル値に blueMultiplier 値を乗算した後に加算する数値です。
数値の範囲は -255 ~ 255 です。
A number from -255 to 255 that is added to the blue channel value after
it has been multiplied by the blueMultiplier value.- Default Value:
- 0
緑チャンネル値に乗算する 10 進数値です。
A decimal value that is multiplied with the green channel value.- Default Value:
- 1
緑チャンネル値に greenMultiplier 値を乗算した後に加算する数値です。
数値の範囲は -255 ~ 255 です。
A number from -255 to 255 that is added to the green channel value after
it has been multiplied by the greenMultiplier value.- Default Value:
- 0
指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.geom.ColorTransform
赤チャンネル値に乗算する 10 進数値です。
A decimal value that is multiplied with the red channel value.- Default Value:
- 1
赤チャンネル値に redMultiplier 値を乗算した後に加算する数値です。
数値の範囲は -255 ~ 255 です。
A number from -255 to 255 that is added to the red channel value after
it has been multiplied by the redMultiplier value.- Default Value:
- 0
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class ColorTransform]
Returns:
Type Description string 2 番目のパラメーターで指定された ColorTransform オブジェクトと
現在の ColorTransform オブジェクトを連結し
2 つのカラー変換を加算的に組み合わせた結果を現在のオブジェクトに設定します。
Concatenates the ColorTransform object specified
by the second parameter with the current ColorTransform object
and sets the current object as the result,
which is an additive combination of the two color transformations.Name Type Description second
ColorTransform ColorTransformオブジェクト
Returns:
Type Description void 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.Returns:
Type Description string