aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 3a757db..b14ef5b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,10 +12,17 @@ fn main() {
angle: PI / 2.0,
distance: 1.0,
aspect_ratio: 1.0,
- brightness: 10.0,
- buffer: Buffer([['.'; 120]; 60])
+ brightness: 5.0,
+ buffer: Buffer([['.'; 120]; 60]),
+ time: 0.0,
};
- cam.render();
- println!("{}", cam.buffer);
+ for _round in 0..1 {
+ for i in 0..60 {
+ // 1 sin round
+ cam.time = (i as f32 / 60.0) * 2.0 * PI;
+ cam.render();
+ println!("{}", cam.buffer);
+ }
+ }
}