added fragments

This commit is contained in:
bQUARKz 2026-03-27 22:47:50 +00:00
parent 456b332d74
commit dee4d81cc8
Signed by: bquarkz
SSH Key Fingerprint: SHA256:Z7dgqoglWwoK6j6u4QC87OveEq74WOhFN+gitsxtkf8
2 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,16 @@ fn frame() -> void
let gy = y / CELL;
for x: int from 0 until SCREEN_W step CELL {
let gx = x / CELL;
let color_raw = (gx * 257 + gy * 911 + ticks * 149) % 65535;
let wave_a = (gx * 211 + ticks * 9) % 31;
let wave_b = (gy * 173 + ticks * 7) % 63;
let wave_c = ((gx + gy) * 149 + ticks * 11) % 31;
let wave_d = ((gx * gy) + ticks * 5) % 63;
let r = (wave_a + wave_c) % 31;
let g = (wave_b + wave_d) % 63;
let b = ((wave_a + wave_b + wave_c) / 3) % 31;
let color_raw = r * 2048 + g * 32 + b;
Gfx.fill_rect(x, y, CELL, CELL, new Color(color_raw));
}
}