Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 11cd50a

Browse files
author
Orta
authoredJun 19, 2019
Merge pull request #147 from gabrielsroka/patch-1
Update raytracer.ts
2 parents ef0acaa + f0c91f6 commit 11cd50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎raytracer/raytracer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class RayTracer {
244244
var color = this.traceRay({ start: scene.camera.pos, dir: getPoint(x, y, scene.camera) }, scene, 0);
245245
var c = Color.toDrawingColor(color);
246246
ctx.fillStyle = "rgb(" + String(c.r) + ", " + String(c.g) + ", " + String(c.b) + ")";
247-
ctx.fillRect(x, y, x + 1, y + 1);
247+
ctx.fillRect(x, y, 1, 1);
248248
}
249249
}
250250
}

0 commit comments

Comments
 (0)
Failed to load comments.