Class: GradientBevelFilter

GradientBevelFilter

GradientBevelFilter クラスを使用すると、オブジェクトにグラデーションベベル効果を適用し、表示できます。
グラデーションベベルは、オブジェクトの外側、内側、または上側が斜めになったエッジであり、グラデーションカラーで強調されます。
斜めのエッジによってオブジェクトが 3 次元に見えます。

The GradientBevelFilter class lets you apply a gradient bevel effect to display objects.
A gradient bevel is a beveled edge, enhanced with gradient color,
on the outside, inside, or top of an object.
Beveled edges make objects look three-dimensional.

new next2d.filters.GradientBevelFilter (distance, angle, colors, alphas, ratios, blur_x, blur_y, strength, quality, type, knockout)

NameTypeDefaultDescription
distancenumber4.0optional
anglenumber45optional
colorsarraynulloptional
alphasarraynulloptional
ratiosarraynulloptional
blur_xnumber4.0optional
blur_ynumber4.0optional
strengthnumber1optional
qualitynumber1optional
typestringBitmapFilterType.INNERoptional
knockoutbooleanfalseoptional

Extends

  • BitmapFilter

Members

next2d.filters.GradientBevelFilter.namespace staticconstant

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

Default Value:
  • next2d.filters.GradientBevelFilter

alphas array

カラー配列内の各色に対応するアルファ透明度の値の配列です。
An array of alpha transparency values
for the corresponding colors in the colors array.

Default Value:
  • null

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

colors array

グラデーションで使用する RGB 16 進数カラー値の配列です。
An array of RGB hexadecimal color values to use in the gradient.

Default Value:
  • null

distance number

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

Default Value:
  • 4

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

quality number

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

Default Value:
  • 1

ratios array

カラー配列内の対応するカラーの色分布比率の配列です。
An array of color distribution ratios
for the corresponding colors in the colors array.

Default Value:
  • null

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

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

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

clone ()GradientBevelFilter

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

Returns:
TypeDescription
GradientBevelFilter

toString ()string

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

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