added fragments
This commit is contained in:
parent
456b332d74
commit
dee4d81cc8
Binary file not shown.
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user