Factor mat.rs and sim.rs out of lib.rs

This commit is contained in:
2020-08-27 19:17:07 -07:00
parent 57258eb6cc
commit b25ccc2471
4 changed files with 395 additions and 389 deletions

View File

@@ -50,7 +50,7 @@ impl ColorTermRenderer {
let cell = state.get(x, y);
//let r = norm_color(cell.bz() * consts::C);
//let r = 0;
let r = norm_color(cell.mat.mz());
let r = norm_color(cell.mat().mz());
let b = (55.0*cell.mat().conductivity()).min(255.0) as u8;
//let b = 0;
//let b = norm_color(cell.ey());