SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Code</title>
    <style>
        body{
            margin: 0;
            overflow: hidden;
        }
    </style>
</head>

<body>
<canvas id="myCanvas"></canvas>
<script>
    const width = document.getElementById("myCanvas").width = 1920;//screen.availWidth;
    const height = document.getElementById("myCanvas").height = 1080;//screen.availHeight;
    const ctx = document.getElementById("myCanvas").getContext("2d");
    const arr = Array(Math.ceil(width / 10)).fill(0);
    const str = "#INDEF$DEFINE_ INT_32_T$-*TYPEDEF 32x64*-$#IFNDEF$ENDIF$$#INC_{}.LUDES<const *void>$#DEFINE Char32T char*[] = NEW Int32_t(32)$#DEFINE Char64T char*[] = NEW Int64_t(QWORD)$#IFNDEF /DEFINE CONST __VARS{}$CONST __VAR{*N._} *ARGS[] CONST **KWARGS[]$RETURN CONSTIN(Int32 *N=_INT[32]():$#:IFNDEF RETURN CONSTIN(WChar_t QWORD)".split("$");

function rain() {
    ctx.fillStyle = "rgba(0,0,0,0.05)";
    ctx.fillRect(0, 0, width, height);
    ctx.fillStyle = "#0f0";
    arr.forEach(function (value, index) {
        ctx.fillText(str[Math.floor(Math.random() * str.length)], index * 200, value);
        arr[index] = value >= height || value > 8888 * Math.random() ? 0 : value + 10;
    });
}

setInterval(rain, 30);
</script>
</body>
</html>