aclib #4

(1) プログラム例 #1 グラデーション

#include <acl.c>
void aMain()
{
    AWindow *w = aOpenWin(256, 256, "gradation", 1);
    int x, y;
    for (y = 0; y < 256; y++) {
        for (x = 0; x < 256; x++)
            aSetPix0(w, x, y, aRgb8(y, x, 0));
    }
    aWait(-1);
}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS