aboutsummaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2024-07-18 01:09:46 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2024-07-18 01:09:46 -0500
commit5b7e264d3a11baebd7fedb63f104959ccdc6ad65 (patch)
tree30777da6697297b172fae4c0b3f2f5c311a70385 /src/config.zig
parenta805bb704a67d112146c5ea6544d0c14ffa2f5ef (diff)
downloadparticle-sim-5b7e264d3a11baebd7fedb63f104959ccdc6ad65.tar.gz
fix(force calculation): Added calculations for wrapping
Introduces a new issue with performance, need to add multithreading in the next update
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index 162f71c..06d60bb 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -5,6 +5,8 @@ pub const screenWidth = 2560;
pub const screenHeight = 1440;
pub const particleMax = 4000;
pub const initialParticles = 3000;
+pub const colorAmnt = colors.len;
+
pub var particleCount: i32 = initialParticles;
pub var radius: f32 = 100.0;
pub var minDistance: f32 = 20.0;
@@ -18,5 +20,4 @@ pub const colors = [_]rl.Color{
rl.Color.orange,
rl.Color.gray,
};
-pub const colorAmnt = colors.len;
pub var rules: [colorAmnt][colorAmnt]f32 = undefined;