aboutsummaryrefslogtreecommitdiff
path: root/trans.bqn
diff options
context:
space:
mode:
authorKitty-Cricket Piapiac <kitty@piapiac.org>2024-05-17 01:13:57 +0100
committerKitty-Cricket Piapiac <kitty@piapiac.org>2024-05-17 01:13:57 +0100
commit37863ce94240700dbb4c06a0d90ec1d5b619300f (patch)
treeaf854b9d504c1cde8b5cae18a303fad9357e3fae /trans.bqn
Meow
Diffstat (limited to 'trans.bqn')
-rwxr-xr-xtrans.bqn8
1 files changed, 8 insertions, 0 deletions
diff --git a/trans.bqn b/trans.bqn
new file mode 100755
index 0000000..0809899
--- /dev/null
+++ b/trans.bqn
@@ -0,0 +1,8 @@
+#!/usr/bin/env bqn
+⟨c⇐color⋄d⇐draw⋄k⇐key⋄w⇐window⟩←r←•Import"rayed-bqn/rayed.bqn"
+grid‿cs←(↕⋈⥊⟜c.lightblue‿c.pink‿c.floralwhite‿c.pink‿c.lightblue)5‿5
+Frame←{
+ scale←2‿2⥊𝕩÷≠grid⋄((⊑⟜cs)d.Rectangle(scale×≍⟜(1⊸+)))¨grid
+ ⊢◶𝕩‿w.GetSize r.raylib.IsWindowResized⟨⟩
+}d._withCanvas_ c.black
+(Frame•_While_(¬w.ShouldClose)w.GetSize)w._openAs"trans"