Class: Shape

Shape

Shape クラスには、Graphics クラスからメソッドにアクセスできる graphics プロパティがあります。

The Shape class includes a graphics property,
which lets you access methods from the Graphics class.

new next2d.display.Shape ()

Extends

  • DisplayObject

Members

next2d.display.Shape.namespace staticconstant

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

Default Value:
  • next2d.display.Shape

graphics Graphics readonly

ベクターの描画コマンドが発生するこのスプライトに属する Graphics オブジェクトを指定します。
Specifies the Graphics object that belongs to this sprite
where vector drawing commands can occur.

namespace constant

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

Default Value:
  • next2d.display.Shape

Methods

next2d.display.Shape.toString ()string static

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

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

toString ()string

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

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