diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-25 21:16:33 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-25 21:16:33 -0400 |
commit | 603d04992cbf6c02cfc16f06ffab7d014d817634 (patch) | |
tree | bb31f0fe50f322c44a6d637b55cc02583b5b08d2 /initrd | |
parent | 5c5c93db40c6412fb46a09383640db01b4c6db4e (diff) |
added licensing
Diffstat (limited to 'initrd')
-rw-r--r-- | initrd/init3 | 1 | ||||
-rw-r--r-- | initrd/keys (renamed from initrd/init2) | 0 | ||||
-rw-r--r-- | initrd/lines | 29 |
3 files changed, 29 insertions, 1 deletions
diff --git a/initrd/init3 b/initrd/init3 deleted file mode 100644 index 4351743..0000000 --- a/initrd/init3 +++ /dev/null @@ -1 +0,0 @@ -print "Hello, world!" diff --git a/initrd/init2 b/initrd/keys index 47dbae1..47dbae1 100644 --- a/initrd/init2 +++ b/initrd/keys diff --git a/initrd/lines b/initrd/lines new file mode 100644 index 0000000..f6b2a82 --- /dev/null +++ b/initrd/lines @@ -0,0 +1,29 @@ +print("Hello.\n") + +fg = 32767 + +# draw bg, lines +rect(50, 50, 380, 220, 6375) +line(50, 160, 430, 160, fg) +line(240, 50, 240, 270, fg) + +x = 50 +while (x <= 430) { + line(x, 170, x, 150, fg) + x = x + 20 +} + +y = 50 +while (y <= 270) { + line(230, y, 250, y, fg) + y = y + 20 +} + +while (1) { + x = rand(379) + 50 + y = rand(219) + 50 + i = 50 + rand(379) + j = 50 + rand(219) + + line(x, y, i, j, 511) +} |