Game Maker Language リファレンス > 組み込み関数 用途別 > 2D グラフィック機能 > draw_line_width
draw_line_width() †
書式 †
draw_line_width(x1, y1, x2, y2, w)
- x1
- 始点のx座標
- y1
- 始点のy座標
- x2
- 終点のx座標
- y2
- 終点のy座標
- w
- 直線の幅
戻り値 †
0
機能 †
座標(x1,y1)-座標(x2,y2)まで幅wの直線を描きます。
Example †
// drawイベント内に記述
// (x,y)-(x+50,y)に白い直線を描画する
// オブジェクトが右に移動することにより、直線レーザーみたいな?
draw_set_color(c_white);
draw_line_width(x, y, x+50, y, 3);
Wiki内検索
#search(): You already view a search box
MENU
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件
これまでの訪問者: 2031
今日の訪問者: 1
昨日の訪問者: 0
閲覧者: 2