interface: set charge magnitude
This commit is contained in:
parent
642d1c5cdd
commit
be6d6ba000
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue