Closed gabrielsroka closed 5 years ago
ctx.fillRect() last 2 args should be width and height (not x2, y2) https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRect
ctx.fillRect()
will this fix https://www.typescriptlang.org/examples/raytracer.ts which is used in https://www.typescriptlang.org/play/index.html too?
👍 thanks!
This won't update that template, but I have sent a PR for that internally
ctx.fillRect()
last 2 args should be width and height (not x2, y2) https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRectwill this fix https://www.typescriptlang.org/examples/raytracer.ts which is used in https://www.typescriptlang.org/play/index.html too?