interface: set charge magnitude

This commit is contained in:
root 2025-04-27 10:05:59 +00:00
parent 642d1c5cdd
commit be6d6ba000
2 changed files with 19 additions and 2 deletions

View file

@ -319,3 +319,10 @@ function toggle_polytope() {
polytope = !polytope;
checkbox_polytope.checked = polytope;
}
function set_charge(value) {
charge = value;
for (let particle of particles) {
particle.charge = value;
}
}