Last active
May 3, 2026 15:19
-
-
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
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
| 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) | |
| } | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Live Demo