From 5b7e264d3a11baebd7fedb63f104959ccdc6ad65 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 18 Jul 2024 01:09:46 -0500 Subject: fix(force calculation): Added calculations for wrapping Introduces a new issue with performance, need to add multithreading in the next update --- src/config.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.zig') 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; -- cgit v1.2.3