Skip to content

Commit e52120a

Browse files
authored
This lil one must be fixed too.
1 parent 53bc03a commit e52120a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cnn/cnn2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ function drawFractal() {
222222
}
223223
else if (mode === "binary") {
224224
const s = Math.round(raw);
225-
color = (s % 2 === 0) ? "#000" : "#fff";
225+
const r = ((s % 2) + 2) % 2;
226+
color = (r === 0) ? "#000" : "#fff";
226227
}
227228
else if (mode === "rgb") {
228229
const s = Math.round(raw);

0 commit comments

Comments
 (0)