画面の背景色を設定する
SetBackgroundColor Red, Green, Blue
Red : 背景色の赤成分( 0~255 ) Green : 背景色の緑成分( 0~255 ) Blue : 背景色の青成分( 0~255 )
(プラグイン / モジュール : DxLibW)
ウインドウの背景色、また ClearDrawScreen を使用した際の描画先画面のクリアカラーとなる色を設定します。 色は光の3原色の赤・緑・青のそれぞれの輝度の強さで指定します。 <例> 白 SetBackgroundColor( 255, 255, 255 ) ; 赤 SetBackgroundColor( 255, 0, 0 ) ; 緑 SetBackgroundColor( 0, 255, 0 ) ; 青 SetBackgroundColor( 0, 0, 255 ) ; 黄 SetBackgroundColor( 255, 255, 0 ) ; 水 SetBackgroundColor( 0, 255, 255 ) ; 紫 SetBackgroundColor( 255, 0, 255 ) ; また、この関数を DxLib_Init を呼び出す前に呼ぶことで起動時の画面の色を設定することができます。 戻り値: 0:成功
| GetBackgroundColor | メインウインドウの背景色を取得する( Red,Green,Blue,Alpha:それぞれ 0~255 ) | (DxLibW) |
| ScreenFlip | フリップ関数、画面の裏ページ(普段は表示されていない)を | (DxLibW) |
| ClearDrawScreen | 画面に描かれたものを消去する | (DxLibW) |
| SetDrawScreen | 描画先グラフィック領域の指定 | (DxLibW) |
| GetDrawScreen | 描画先画面を取得する | (DxLibW) |
| プラグイン / モジュール | DxLibW |
| バージョン | 3.24f |
| 作成日 | 2026/04/12 |
| 著作者 | DxLib: Takumi Yamada / HSP binding: IronHSP Project |
| URL | https://dxlib.xsrv.jp/ |
| 備考 | hspdxlib.as をインクルードして使用 |
| タイプ | DxLib ゲームライブラリ |
| グループ | DxLib グラフィック描画 |
| 対応環境 |
|
| hs ファイル | hsphelp\hspdxlib.hs |