Class: DropShadowFilter

DropShadowFilter

DropShadowFilter クラスは、ドロップシャドウを表示オブジェクトに追加します。
シャドウアルゴリズムは、ぼかしフィルターで使用するのと同じボックスフィルターに基づいています。
ドロップシャドウのスタイルには複数のオプションがあり、内側シャドウ、外側シャドウ、ノックアウトモードなどがあります。

The DropShadowFilter class lets you add a drop shadow to display objects.
The shadow algorithm is based on the same box filter that the blur filter uses.
You have several options for the style of the drop shadow, including inner
or outer shadow and knockout mode.

new next2d.filters.DropShadowFilter (distance, angle, color, alpha, blur_x, blur_y, strength, quality, inner, knockout, hide_object)

NameTypeDefaultDescription
distancenumber4optional
anglenumber45optional
colornumber0optional
alphanumber1optional
blur_xnumber4optional
blur_ynumber4optional
strengthnumber1optional
qualitynumber1optional
innerbooleanfalseoptional
knockoutbooleanfalseoptional
hide_objectbooleanfalseoptional

Extends

  • BitmapFilter

Members

next2d.filters.DropShadowFilter.namespace staticconstant

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

Default Value:
  • next2d.filters.DropShadowFilter

alpha number

アルファ透明度の値です。
The alpha transparency value for the color.

Default Value:
  • 1

angle number

シャドウの角度
The angle of the shadow.

Default Value:
  • 45

blurX number

水平方向のぼかし量。
The amount of horizontal blur.

Default Value:
  • 4

blurY number

垂直方向のぼかし量。
The amount of vertical blur.

Default Value:
  • 4

color number

グローのカラー
The color of the glow.

Default Value:
  • 4

distance number

シャドウのオフセット距離です。
The offset distance for the shadow, in pixels.

Default Value:
  • 4

hideObject boolean

オブジェクトが非表示であるかどうかを示します。
Indicates whether or not the object is hidden.

Default Value:
  • true

inner boolean

グローが内側グローであるかどうか
Specifies whether the glow is an inner glow.

Default Value:
  • true

knockout boolean

オブジェクトにノックアウト効果を適用するかどうか
Specifies whether the object has a knockout effect.

Default Value:
  • true

namespace constant

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

Default Value:
  • next2d.filters.DropShadowFilter

quality number

ぼかしの実行回数です。
The number of times to perform the blur.

Default Value:
  • 1

strength number

インプリントの強さまたは広がりです。
The strength of the imprint or spread.

Default Value:
  • 1

Methods

next2d.filters.DropShadowFilter.toString ()string static

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

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

_$isUpdated ()boolean

Returns:
TypeDescription
boolean

clone ()DropShadowFilter

オブジェクトのコピーを返します。
Returns a copy of this filter object.

Returns:
TypeDescription
DropShadowFilter

toString ()string

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

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