We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990f86d commit 3ce751eCopy full SHA for 3ce751e
1 file changed
cnn/cnn2.js
@@ -231,6 +231,7 @@ function drawFractal() {
231
}
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";
236
237
else if (mode === "livingstone") {
0 commit comments