aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/main.zig1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5c939dd..995d209 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.PHONY: all
-all:
+all: fmt
@rm -f out.ppm
@zig build run > out.ppm
diff --git a/src/main.zig b/src/main.zig
index 1f37960..6b67d23 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -16,6 +16,7 @@ pub fn main() !void {
var j: i32 = image_height - 1;
while (j >= 0) {
+ std.debug.print("\rScanlines remaining: {}", .{j});
var i: i32 = 0;
while (i < image_width) {
const r = @intToFloat(f64, i) / (image_width - 1);