diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-06-13 01:11:11 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-06-13 01:11:11 -0500 |
| commit | 2374e1f1a11d62ee579d25a39b24312a68e7387e (patch) | |
| tree | 9063df7831bec2bdc4dfdb3782a080091aac05ef | |
| parent | 849d278638769542a58b2b53f8c92f6045d135a0 (diff) | |
| download | particle-sim-2374e1f1a11d62ee579d25a39b24312a68e7387e.tar.gz | |
Fixed printing ruleset to terminal
| -rw-r--r-- | src/particle.zig | 8 |
1 files changed, 4 insertions, 4 deletions
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", .{}); } |
