From 4ccf565cb6a69412130c32b41786b798779ce549 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Sun, 21 Sep 2025 18:11:00 +0200 Subject: [PATCH] half-toning attempt --- main.ua | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 main.ua diff --git a/main.ua b/main.ua new file mode 100644 index 0000000..47105de --- /dev/null +++ b/main.ua @@ -0,0 +1,41 @@ +# C ← ( +# ⨬([0_0_0 0_0_0 0_0_0] +# | [0_0_0 0_0_0 0_0_1] +# | [1_0_0 0_0_0 0_0_1] +# | [1_0_0 0_0_0 1_0_1] +# | [1_0_0 0_1_0 1_0_1] +# | [1_0_1 0_1_0 1_0_1] +# | [1_0_1 0_1_0 1_1_1] +# | [1_0_1 0_1_1 1_1_1] +# | [1_0_1 1_1_1 1_1_1] +# | [1_1_1 1_1_1 1_1_1] +# ) ⌊×10 +# ) ÷⊃⧻/+ + +C ← ( + ⨬([0_0 0_0] + | [0_0 0_1] + | [1_0 0_1] + | [1_0 1_1] + | [1_1 1_1] + ) ⌊×5 +) ÷⊃⧻/+ + +HalfTone ← ( + ↯△⟜( + △⟜(⊜C⊸(▽⟜≡▽2°△ ↙2 ⌈÷2△)) + ⊂∩(↯⍜⊢÷₂)⊃(⊙≡⊢|⊙≡⊣) + /⊟⊕∘⊸(◿2≡\+ ˜↯1△) + ) +) + +GrayScale ← ≡₁(÷⊃⧻/+) + +AntiAlias ← ⧈₃(÷⊃⧻/+) + +# gen 12_12_3 0 +Cats +GrayScale +HalfTone +AntiAlias +# (▽⟜≡▽10)