Add [broken] conductivity support

It doesn't seem to be solved by using f64
This commit is contained in:
2020-07-31 18:03:40 -07:00
parent 56cc5980dd
commit 5388658b00
3 changed files with 81 additions and 28 deletions

View File

@@ -55,7 +55,7 @@ impl ColorTermRenderer {
//let g = norm_color(cell.ex());
//let b = norm_color(cell.ey());
//let g = norm_color(curl(cell.ex(), cell.ey()));
let g = norm_color(cell.bz() * 3.0e8);
let g = norm_color((cell.bz() * 3.0e8) as _);
write!(&mut buf, "{}", RGB(r, g, b).paint(square));
}
write!(&mut buf, "\n");