From 2374e1f1a11d62ee579d25a39b24312a68e7387e Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 13 Jun 2024 01:11:11 -0500 Subject: Fixed printing ruleset to terminal --- src/particle.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle.zig') diff --git a/src/particle.zig b/src/particle.zig index 00eace7..e0cb789 100644 --- a/src/particle.zig +++ b/src/particle.zig @@ -20,15 +20,15 @@ pub fn ruleMatrix() [cfg.colorAmnt][cfg.colorAmnt]f32 { /// Prints rules generated from ruleMatrix() pub fn printRules(rules: [cfg.colorAmnt][cfg.colorAmnt]f32) void { - std.debug.print("\n|{s:^6}", .{"Rules"}); + std.debug.print("\n| {s:^7} ", .{"Rules"}); for (0..cfg.colors.len) |c| - std.debug.print("| {s:^4} ", .{colorToString(c)}); + std.debug.print("| {s:^7} ", .{colorToString(c)}); std.debug.print("|\n", .{}); for (rules, 0..) |row, i| { - std.debug.print("| {s:^4} ", .{colorToString(i)}); + std.debug.print("| {s:^7} ", .{colorToString(i)}); for (row) |col| - std.debug.print("| {d:^4.1} ", .{col}); + std.debug.print("| {d:^7.1} ", .{col}); std.debug.print("|\n", .{}); } -- cgit v1.2.3