Last active
December 8, 2017 05:31
-
-
Save MozyOk/ca85b6fcabd0ec425a8e7dbf7b236fb1 to your computer and use it in GitHub Desktop.
コンソールテトリスのベース
This file contains 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
setInterval(function() { color = Math.floor(Math.random() * 16777216).toString(16); console.clear(); | |
console.log("%c■■■■■■■■■\n■■■■■■■■■\n■■■■■■■■■", "background-color: #" + color + ";color: #" + color + ";"); }, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment