Class: GlowFilter

GlowFilter

GlowFilter クラスを使用すると、表示オブジェクトにグロー効果を適用できます。
グローのスタイルには複数のオプションがあり、内側グロー、外側グロー、ノックアウトモードなどがあります。
グローフィルターは、distance プロパティと angle プロパティを 0 に設定したドロップシャドウフィルターによく似ています。

The GlowFilter class lets you apply a glow effect to display objects.
You have several options for the style of the glow, including inner or outer glow and knockout mode.
The glow filter is similar to the drop shadow filter with the distance
and angle properties of the drop shadow filter set to 0.

new next2d.filters.GlowFilter (color, alpha, blur_x, blur_y, strength, quality, inner, knockout)

NameTypeDefaultDescription
colornumber0xFF0000optional
alphanumber1optional
blur_xnumber6optional
blur_ynumber6optional
strengthnumber2optional
qualityint1optional
innerbooleanfalseoptional
knockoutbooleanfalseoptional

Extends

  • BitmapFilter

Members

next2d.filters.GlowFilter.namespace staticconstant

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

Default Value:
  • next2d.filters.GlowFilter

alpha number

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

Default Value:
  • 1

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

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.GlowFilter

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.GlowFilter.toString ()string static

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

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

_$isUpdated ()boolean

Returns:
TypeDescription
boolean

clone ()GlowFilter

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

Returns:
TypeDescription
GlowFilter

toString ()string

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

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