瀏覽代碼

* Changed the cacaplas colours. Yeah, I do what I want.

tags/v0.99.beta14
Sam Hocevar sam 18 年之前
父節點
當前提交
071f31ecc8
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/cacaplas.c

+ 3
- 3
src/cacaplas.c 查看文件

@@ -93,9 +93,9 @@ int main (int argc, char **argv)
{
double z = ((double)i) / 256 * 6 * M_PI;

red[i] = (1.0 + cos(z + r[0] * frame)) / 2 * 0xfff;
green[i] = (1.0 + sin(z + r[1] * frame)) / 2 * 0xfff;
blue[i] = (1.0 + cos(z + r[2] * frame)) / 2 * 0xfff;
red[i] = (1.0 + sin(z + r[1] * frame)) / 2 * 0xfff;
blue[i] = (1.0 + cos(z + r[0] * frame)) / 2 * 0xfff;
green[i] = (1.0 + cos(z + r[2] * frame)) / 2 * 0xfff;
}

/* Set the palette */


Loading…
取消
儲存