Class: BevelFilter

BevelFilter

BevelFilter クラスを使用すると、表示オブジェクトにベベル効果を追加できます。
ボタンなどのオブジェクトにベベル効果を適用すると 3 次元的に表現されます。
異なるハイライトカラー、シャドウカラー、ベベルのぼかし量、ベベルの角度、ベベルの配置、
ノックアウト効果を使用して、ベベルの外観をカスタマイズできます。

The BevelFilter class lets you add a bevel effect to display objects.
A bevel effect gives objects such as buttons a three-dimensional look.
You can customize the look of the bevel with different highlight and shadow colors,
the amount of blur on the bevel, the angle of the bevel, the placement of the bevel,
and a knockout effect.

new next2d.filters.BevelFilter (distance, angle, highlight_color, highlight_alpha, shadow_color, shadow_alpha, blur_x, blur_y, strength, quality, type, knockout)

NameTypeDefaultDescription
distancenumber4optional
anglenumber45optional
highlight_coloruint0xffffffoptional
highlight_alphanumber1optional
shadow_coloruint0x000000optional
shadow_alphanumber1optional
blur_xnumber4optional
blur_ynumber4optional
strengthnumber1optional
qualityint1optional
typestringBitmapFilterType.INNERoptional
knockoutbooleanfalseoptional

Extends

  • BitmapFilter

Members

next2d.filters.BevelFilter.namespace staticconstant

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

Default Value:
  • next2d.filters.BevelFilter

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

distance number

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

Default Value:
  • 4

highlightAlpha number

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

Default Value:
  • 1

highlightColor number

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

Default Value:
  • 0xffffff

knockout boolean

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

Default Value:
  • false

namespace constant

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

Default Value:
  • next2d.filters.BevelFilter

quality number

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

Default Value:
  • 1

shadowAlpha number

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

Default Value:
  • 1

shadowColor number

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

Default Value:
  • 0

strength number

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

Default Value:
  • 1

type string

オブジェクトでのベベルの配置
The placement of the bevel on the object.

Default Value:
  • BitmapFilterType.INNER

Methods

next2d.filters.BevelFilter.toString ()string static

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

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

clone ()BevelFilter

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

Returns:
TypeDescription
BevelFilter

toString ()string

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

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