We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce751e commit 53bc03aCopy full SHA for 53bc03a
cnn/cnn2.js
@@ -232,7 +232,7 @@ function drawFractal() {
232
else if (mode === "mod4") {
233
const s = Math.round(raw);
234
const r = ((s % 4) + 4) % 4;
235
- color = (s % 4 === 0 || s % 4 === 1) ? "#000" : "#fff";
+ color = (r === 0 || r === 1) ? "#000" : "#fff";
236
}
237
else if (mode === "livingstone") {
238
0 commit comments