Example
usage of BlendMode.
// static BlendMode
const {BlendMode, MovieClip} = next2d.display;
const movieClip = new MovieClip();
movieClip.blendMode = BlendMode.ADD;
Members
表示オブジェクトの要素カラーの値を背景色に加算し、その際に上限 0xFF を適用します。
Adds the values of the constituent colors of the display object
to the colors of its background, applying a ceiling of 0xFF.- Default Value:
- add
表示オブジェクトの各ピクセルのアルファ値を背景に適用します。
Applies the alpha value of each pixel of the display object to the background.- Default Value:
- alpha
表示オブジェクトの要素カラーと背景色のうち暗い方(値が小さい方)の色を選択します。
Selects the darker of the constituent colors of the display object
and the colors of the background (the colors with the smaller values).- Default Value:
- darken
表示オブジェクトの要素カラーと背景色を比較し、2 つの要素カラーのうち明るい方の値から暗い方の値を差し引きます。
Compares the constituent colors of the display object with the colors of its background,
and subtracts the darker of the values of the two constituent colors from the lighter value.- Default Value:
- difference
表示オブジェクトのアルファ値に基づいて背景を消去します。
Erases the background based on the alpha value of the display object.- Default Value:
- erase
表示オブジェクトの暗さに基づいて、各ピクセルの色を調整します。
Adjusts the color of each pixel based on the darkness of the display object.- Default Value:
- hardlight
背景を反転します。
Inverts the background.- Default Value:
- invert
表示オブジェクトに関する透明度グループを強制的に作成します。
Forces the creation of a transparency group for the display object.- Default Value:
- layer
表示オブジェクトの要素カラーと背景色のうち明るい方(値が大きい方)の色を選択します。
Selects the lighter of the constituent colors of the display object
and the colors of the background (the colors with the larger values).- Default Value:
- lighten
表示オブジェクトの要素カラーの値と背景色の要素カラーの値を乗算した後、0xFF で割って正規化し、色を暗くします。
Multiplies the values of the display object constituent colors by the constituent colors
of the background color, and normalizes by dividing by 0xFF, resulting in darker colors.- Default Value:
- multiply
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.display.BlendMode
表示オブジェクトは、背景の前に表示されます。
The display object appears in front of the background.- Default Value:
- normal
背景の暗さに基づいて、各ピクセルの色を調整します。
Adjusts the color of each pixel based on the darkness of the background.- Default Value:
- overlay
表示オブジェクトの色の補数(逆)と背景色の補数を乗算して、ブリーチ効果を得ます。
Multiplies the complement (inverse) of the display object color by the complement
of the background color, resulting in a bleaching effect.- Default Value:
- screen
結果の下限を 0 として、表示オブジェクトの要素カラーの値をその背景色の値から減算します。
Subtracts the values of the constituent colors in the display object
from the values of the background color, applying a floor of 0.- Default Value:
- subtract
指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.display.BlendMode
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class BlendMode]
Returns:
Type Description string 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.- Default Value:
- [object BlendMode]
Returns:
Type Description string