Created
October 25, 2022 08:51
-
-
Save vivit-jc/6d9d076871323dfab0fee4ba903dfab1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(400, 400); | |
// ここから | |
let print = "" | |
let count = 0 | |
for(let i=0;i<200;i++){ | |
if(Math.floor(random(2))==0){ | |
print += "◯" | |
count += 1 | |
} else { | |
print += "●" | |
} | |
} | |
console.log(print,count) | |
// ここまで | |
} | |
function draw() { | |
background(220); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment