diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-06-12 21:18:49 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2024-06-12 21:18:49 -0500 |
| commit | 4ef82b5d4ce1e7dc0f30672519310e81113e6fe7 (patch) | |
| tree | c7e5ee178476c5ea992c1b7cdecbfcc17b839885 /src/particle.zig | |
| parent | 963fae202108acd0498349e872e4811fa6c6aba0 (diff) | |
| download | particle-sim-4ef82b5d4ce1e7dc0f30672519310e81113e6fe7.tar.gz | |
Updated imgui to have more verbose names for colors
Diffstat (limited to 'src/particle.zig')
| -rw-r--r-- | src/particle.zig | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/particle.zig b/src/particle.zig index 8efae69..05ffb7f 100644 --- a/src/particle.zig +++ b/src/particle.zig @@ -37,14 +37,14 @@ pub fn printRules(rules: [cfg.colorAmnt][cfg.colorAmnt]f32) void { /// Convert the color index to a string pub fn colorToString(c: usize) []const u8 { return switch (c) { - 0 => "R", - 1 => "Grn", - 2 => "Bl", - 3 => "Y", - 4 => "M", - 5 => "Br", - 6 => "O", - 7 => "Gry", + 0 => "Red", + 1 => "Green", + 2 => "Blue", + 3 => "Yellow", + 4 => "Magenta", + 5 => "Brown", + 6 => "Orange", + 7 => "Gray", else => " ", }; } |
