Skip to content

Instantly share code, notes, and snippets.

@luizbills
Last active May 3, 2026 15:19
Show Gist options
  • Select an option

  • Save luizbills/ca3538d56f7e963f708fba443931151f to your computer and use it in GitHub Desktop.

Select an option

Save luizbills/ca3538d56f7e963f708fba443931151f to your computer and use it in GitHub Desktop.
Commodore 64 BASIC one-liner "10 PRINT CHR$(205.5+RND(1)); : GOTO 10" in Litecanvas
litecanvas()
framerate(1)
draw()
function draw() {
cls(3)
block = randi(10,100)
for (let y = 0; y < H; y += block) {
for (let x = 0; x < W; x += block) {
if (rand() < 0.5) {
line(x, y, x + block, y + block, 0)
} else {
line(x + block, y, x, y + block, 0)
}
}
}
}
@luizbills

luizbills commented May 3, 2026

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment