10 PRINT
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
This famous Commodore 64 BASIC line, that prints a beauiful line PETSCII art.
Not just a line of code, but an entire culture and history.
Code
elem=document.querySelector(".example-container");
setCanvas(elem);
x = 0;
y = 0;
function draw(){
if(randomBool()){
new line(x,y,x+40,y+40,'#695fe6',2);
}
else{
new line(x,y+40,x+40,y,'#695fe6',2);
}
x+=40;
if(x>WIDTH){
x=0;
y+=40;
}
if(y<HEIGHT){ //stop the illustration when the canvas is filled
requestAnimationFrame(draw);
}
}
draw();