diff options
Diffstat (limited to 'trans.bqn')
-rwxr-xr-x | trans.bqn | 8 |
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" |