Members
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.display.Bitmap
指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.display.Graphics
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class Graphics]
Returns:
Type Description string 描画領域をビットマップイメージで塗りつぶします。
Fills a drawing area with a bitmap image.Name Type Default Description bitmap_data
BitmapData matrix
Matrix null optional repeat
boolean true optional smooth
boolean false optional Returns:
Type Description Graphics 描画のときに他の Graphics メソッド(lineTo() や drawCircle() など)
に対する今後の呼び出しに使用する単純な一色塗りを指定します。
Specifies a simple one-color fill that subsequent calls
to other Graphics methods (such as lineTo() or drawCircle()) use when drawing.Name Type Default Description color
string | number 0 optional alpha
number 1.0 optional Returns:
Type Description Graphics Graphics の他のメソッド(lineTo()、drawCircle() など)に対する、
オブジェクトの後続の呼び出しに使用するグラデーション塗りを指定します。
Specifies a gradient fill used by subsequent calls
to other Graphics methods (such as lineTo() or drawCircle()) for the object.Name Type Default Description type
string colors
array alphas
array ratios
array matrix
Matrix null optional spread_method
string SpreadMethod.PAD optional interpolation_method
string InterpolationMethod.RGB optional focal_point_ratio
number 0 optional Returns:
Type Description Graphics この Graphics オブジェクトに描画されているグラフィックをクリアし、
塗りと線のスタイルの設定をリセットします。
Clears the graphics that were drawn to this Graphics object,
and resets fill and line style settings.Returns:
Type Description Graphics すべての描画コマンドをソース Graphics オブジェクトから、呼び出し Graphics オブジェクトにコピーします。
Copies all of drawing commands from the source Graphics object into the calling Graphics object.Returns:
Type Description Graphics すべての描画コマンドをソース Graphics オブジェクトから、呼び出し Graphics オブジェクトにコピーします。
Copies all of drawing commands from the source Graphics object into the calling Graphics object.Name Type Description graphics
Graphics Returns:
Type Description void 現在の描画位置から指定されたアンカーポイントに 3 次ベジェ曲線を描画します。
Draws a cubic Bezier curve from the current drawing position to the specified anchor point.Name Type Description control_x1
number control_y1
number control_x2
number control_y2
number anchor_x
number anchor_y
number Returns:
Type Description Graphics (controlX, controlY) で指定されたコントロールポイントを使用し、
現在の描画位置から (anchorX, anchorY) まで、現在の線のスタイルで 2 次ベジェ曲線を描画します。
Draws a quadratic Bezier curve using the current line style from
the current drawing position to (anchorX, anchorY)
and using the control point that (controlX, controlY) specifies.Name Type Description control_x
number control_y
number anchor_x
number anchor_y
number Returns:
Type Description Graphics 円を描画します。
Draws a circle.Name Type Description x
number y
number radius
number Returns:
Type Description Graphics 楕円を描画します。
Draws an ellipse.Name Type Description x
number y
number width
number height
number Returns:
Type Description Graphics 矩形を描画します。
Draws a rectangle.Name Type Description x
number y
number width
number height
number Returns:
Type Description Graphics 角丸矩形を描画します。
Draws a rounded rectangle.Name Type Default Description x
number y
number width
number height
number ellipse_width
number ellipse_height
number NaN optional Returns:
Type Description Graphics beginFill()、beginGradientFill()、または beginBitmapFill() メソッドへの
最後の呼び出し以降に追加された線と曲線に塗りを適用します。
Applies a fill to the lines and curves that were added since
the last call to the beginFill(), beginGradientFill(),
or beginBitmapFill() method.Returns:
Type Description Graphics lineStyle()、または lineGradientStyle() メソッドへの
最後の呼び出し以降に追加された線と曲線に塗りを適用します。
Applies a fill to the lines and curves that were added since
the last call to the beginFill() or beginGradientFill() method.Returns:
Type Description Graphics 線の描画で、線として使用するビットマップを指定します。
Specifies a bitmap to use for the line stroke when drawing lines.Name Type Default Description bitmap_data
BitmapData matrix
Matrix null optional repeat
boolean true optional smooth
boolean false optional Returns:
Type Description Graphics 線の描画で使用するグラデーションを指定します。
Specifies a gradient to use for the stroke when drawing lines.Name Type Default Description type
string colors
array alphas
array ratios
array matrix
Matrix null optional spread_method
string SpreadMethod.PAD optional interpolation_method
string InterpolationMethod.RGB optional focal_point_ratio
number 0 optional Returns:
Type Description Graphics lineTo() メソッドや drawCircle() メソッドなど、
Graphics のメソッドの後続の呼び出しに使用する線スタイルを指定します。
Specifies a line style used for subsequent calls
to Graphics methods such as the lineTo() method
or the drawCircle() method.Name Type Default Description thickness
number NaN optional color
number | string 0 optional alpha
number 1 optional caps
string CapsStyle.NONE optional joints
string JointStyle.ROUND optional miter_limit
number 3 optional Returns:
Type Description Graphics 現在の描画位置から (x, y) まで、現在の線のスタイルを使用して線を描画します。
その後で、現在の描画位置は (x, y) に設定されます。
Draws a line using the current line style from the current drawing position to (x, y);
the current drawing position is then set to (x, y).Name Type Description x
number y
number Returns:
Type Description Graphics 現在の描画位置を (x, y) に移動します。
Moves the current drawing position to (x, y).Name Type Description x
number y
number Returns:
Type Description Graphics 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.- Default Value:
- [object Graphics]
Returns:
Type Description string