Class: BlendMode

BlendMode

ブレンドモードの視覚効果のために定数値を提供するクラスです。
全てのDisplayObjectに設定が可能です。
A class that provides constant values for visual blend mode effects.
It can be set for all DisplayObjects.

new next2d.display.BlendMode ()

Example

usage of BlendMode.

// static BlendMode
const {BlendMode, MovieClip} = next2d.display;
const movieClip = new MovieClip();
movieClip.blendMode = BlendMode.ADD;

Members

next2d.display.BlendMode.ADD staticconstant

表示オブジェクトの要素カラーの値を背景色に加算し、その際に上限 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

next2d.display.BlendMode.ALPHA staticconstant

表示オブジェクトの各ピクセルのアルファ値を背景に適用します。
Applies the alpha value of each pixel of the display object to the background.

Default Value:
  • alpha

next2d.display.BlendMode.DARKEN staticconstant

表示オブジェクトの要素カラーと背景色のうち暗い方(値が小さい方)の色を選択します。
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

next2d.display.BlendMode.DIFFERENCE staticconstant

表示オブジェクトの要素カラーと背景色を比較し、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

next2d.display.BlendMode.ERASE staticconstant

表示オブジェクトのアルファ値に基づいて背景を消去します。
Erases the background based on the alpha value of the display object.

Default Value:
  • erase

next2d.display.BlendMode.HARDLIGHT staticconstant

表示オブジェクトの暗さに基づいて、各ピクセルの色を調整します。
Adjusts the color of each pixel based on the darkness of the display object.

Default Value:
  • hardlight

next2d.display.BlendMode.INVERT staticconstant

背景を反転します。
Inverts the background.

Default Value:
  • invert

next2d.display.BlendMode.LAYER staticconstant

表示オブジェクトに関する透明度グループを強制的に作成します。
Forces the creation of a transparency group for the display object.

Default Value:
  • layer

next2d.display.BlendMode.LIGHTEN staticconstant

表示オブジェクトの要素カラーと背景色のうち明るい方(値が大きい方)の色を選択します。
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

next2d.display.BlendMode.MULTIPLY staticconstant

表示オブジェクトの要素カラーの値と背景色の要素カラーの値を乗算した後、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

next2d.display.BlendMode.namespace staticconstant

指定されたクラスの空間名を返します。
Returns the space name of the specified class.

Default Value:
  • next2d.display.BlendMode

next2d.display.BlendMode.NORMAL staticconstant

表示オブジェクトは、背景の前に表示されます。
The display object appears in front of the background.

Default Value:
  • normal

next2d.display.BlendMode.OVERLAY staticconstant

背景の暗さに基づいて、各ピクセルの色を調整します。
Adjusts the color of each pixel based on the darkness of the background.

Default Value:
  • overlay

next2d.display.BlendMode.SCREEN staticconstant

表示オブジェクトの色の補数(逆)と背景色の補数を乗算して、ブリーチ効果を得ます。
Multiplies the complement (inverse) of the display object color by the complement
of the background color, resulting in a bleaching effect.

Default Value:
  • screen

next2d.display.BlendMode.SUBTRACT staticconstant

結果の下限を 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

namespace constant

指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.

Default Value:
  • next2d.display.BlendMode

Methods

next2d.display.BlendMode.toString ()string static

指定されたクラスのストリングを返します。
Returns the string representation of the specified class.

Default Value:
  • [class BlendMode]
Returns:
TypeDescription
string

toString ()string

指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.

Default Value:
  • [object BlendMode]
Returns:
TypeDescription
string