draw_surface_general()


2D グラフィック機能

draw_surface_general

指定のサーフェースの一部分を指定し、スケール値、回転、4頂点の色、アルファ値を指定して描画することが可能です

Syntax:

draw_surface_general(id, left, top, width, height, x, y, xscale, yscale, rot, c1, c2, c3, c4, alpha);
index
サーフェースのインデックス番号
left
切り取り左上座標(X)
top
切り取り左上座標(Y)
width
切り取る幅
height
切り取る高さ
x
描画左上座標(X)
y
描画左上座標(Y)
xscale
水平方向のスケール値
yscale
垂直方向のスケール値
rot
回転値
c1
左上の色
c2
右上の色
c3
右下の色
c4
左下の色
alpha
アルファ値

戻り値

N/A
なし

Description

This function combines the function draw_surface_ext with the function draw_surface_part, adding in some additional blending options so that each corner of the final surface part can be blended with an individual color.

注意

頂点カラーによるグラデーションは、HTML5ではWebGLを有効にしないと動作しません


注意

サーフェースはいつでも破棄される可能性があります。ですのでsurface_exists()関数を使用して常に存在チェックをする必要があります。詳細についてはサーフェース機能についてを参照してください

Example:

draw_surface_general(surf, 8, 8, 32, 32, x, y, 2, 0.5, 180, c_white, c_white, c_black, c_black, 1);

This will draw a 32x32 pixel area from 8x8 pixels into the surface. It will be stretched to double its usual width but half its usual height. It will be opaque, and upside down. The top area of the surface will be blended white and hence normal, but the bottom area will be black, meaning the surface will go from normal to silhouette downwards in a smooth gradient.

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 1646
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 5