summaryrefslogtreecommitdiff
path: root/racer-tracer/src/render.rs
diff options
context:
space:
mode:
authorSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-19 20:03:29 +0100
committerSakarias Johansson <sakarias.johansson@goodbyekansas.com>2023-01-19 20:21:55 +0100
commit9959f90ea4b7ebd933387e6b33647fc661785d84 (patch)
tree48c2484f08dd9ce3a758336616c4386d97663af1 /racer-tracer/src/render.rs
parentb24f6d9bc9cf1f72c0fb85eb8b25e051b81b7b4f (diff)
downloadracer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.tar.gz
racer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.tar.xz
racer-tracer-9959f90ea4b7ebd933387e6b33647fc661785d84.zip
💚 Add CI workflows
Diffstat (limited to 'racer-tracer/src/render.rs')
-rw-r--r--racer-tracer/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/racer-tracer/src/render.rs b/racer-tracer/src/render.rs
index ea5c17d..1d6d65d 100644
--- a/racer-tracer/src/render.rs
+++ b/racer-tracer/src/render.rs
@@ -73,7 +73,7 @@ pub fn raytrace(
let scaled_screen_width = image.screen_width / data.scale;
let scaled_screen_height = image.screen_height / data.scale;
- let mut colors: Vec<Vec3> = vec![Vec3::default(); scaled_height * scaled_width as usize];
+ let mut colors: Vec<Vec3> = vec![Vec3::default(); scaled_height * scaled_width];
for row in 0..scaled_height {
for column in 0..scaled_width {
let u: f64 = ((image.x / data.scale + column) as f64 + random_double())