aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-10-27 12:09:49 +0300
committereug-vs <eugene@eug-vs.xyz>2021-10-27 12:09:49 +0300
commitf704384b9938215f818c1c2006ad9b233c0d7c00 (patch)
treea6dae17c016229a1b4902584db2da7c725fdb9b8 /src/main.rs
parenta63a5fd647a2117885e70954181ea7164e470bb3 (diff)
downloadpistol-f704384b9938215f818c1c2006ad9b233c0d7c00.tar.gz
feat: increase screen size
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index d5c8278..ae1fafb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,15 +11,14 @@ fn main() {
direction: Vector3 { x: 1.0, y: 0.0, z: 0.0 },
angle: PI / 2.0,
distance: 1.0,
- aspect_ratio: 1.0,
+ aspect_ratio: 2.0 / 3.0,
brightness: 5.0,
- buffer: Buffer([['.'; 120]; 60]),
+ buffer: Buffer([['.'; 180]; 60]),
time: 0.0,
};
for _round in 0..20 {
for i in 0..60 {
- // 1 sin round
cam.time = (i as f32 / 60.0) * 2.0 * PI;
cam.render();
println!("{}", cam.buffer);