Update chem.js
This commit is contained in:
parent
fe7164aa9d
commit
39824f41d5
|
|
@ -1098,7 +1098,7 @@ elements.polytetrafluoroethylene = {
|
||||||
colored: false,
|
colored: false,
|
||||||
},
|
},
|
||||||
tick: function (pixel) {
|
tick: function (pixel) {
|
||||||
if (!pixel.colored) {
|
if (!pixel.colored || !pixel.origColor) {
|
||||||
let rgb = elements.polytetrafluoroethylene.colorObject;
|
let rgb = elements.polytetrafluoroethylene.colorObject;
|
||||||
|
|
||||||
let coloroffset = Math.floor(Math.random() * (Math.random() > 0.5 ? -1 : 1) * Math.random() * 2);
|
let coloroffset = Math.floor(Math.random() * (Math.random() > 0.5 ? -1 : 1) * Math.random() * 2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue