[過去ログ]
DXライブラリ 総合スレッド その17 (981レス)
DXライブラリ 総合スレッド その17 http://toro.5ch.net/test/read.cgi/gamedev/1383795645/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
29: 名前は開発中のものです。 [sage] 2013/11/11(月) 11:31:03.35 ID:utjYUJKi この方法は誤差が多いな int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { ChangeWindowMode(TRUE); SetGraphMode(640, 400, 32); if (DxLib_Init() == -1) return -1; int n = 0; int naka = 0; while (!ProcessMessage()) { ClearDrawScreen(); DrawBox(0, 0, 399, 399, GetColor(255, 255, 255), TRUE); DrawCircle(00, 399, 399, GetColor(0, 0, 255), true); int x = GetRand(399); int y = GetRand(399); int Cr = GetPixel(x, y); n++; if (Cr == 255) naka++; double kekka = (double)naka / n * 4.0; DrawFormatString(400, 0, GetColor(255, 255, 0), L"%f\n", kekka); ScreenFlip(); } DxLib_End(); return 0; } http://toro.5ch.net/test/read.cgi/gamedev/1383795645/29
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.026s