diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-02-14 23:20:59 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-02-14 23:34:51 +0530 |
| commit | df2791adfcd5c2173102a3e11125d80951de6ff3 (patch) | |
| tree | e459c248a5a03a6e1534c2486e32997b49a7faa7 /4-im-a-sinner | |
| parent | 26b040ac6b52ed298de1023a47d015cb200b4d10 (diff) | |
| download | uiua-creative-coding-df2791adfcd5c2173102a3e11125d80951de6ff3.tar.gz uiua-creative-coding-df2791adfcd5c2173102a3e11125d80951de6ff3.zip | |
Add gif for sin pattern
Diffstat (limited to '4-im-a-sinner')
| -rw-r--r-- | 4-im-a-sinner/main.ua | 20 | ||||
| -rw-r--r-- | 4-im-a-sinner/output-400.gif | bin | 0 -> 408671 bytes | |||
| -rw-r--r-- | 4-im-a-sinner/output.gif | bin | 0 -> 408671 bytes |
3 files changed, 11 insertions, 9 deletions
diff --git a/4-im-a-sinner/main.ua b/4-im-a-sinner/main.ua index 00dfb26..a4f0390 100644 --- a/4-im-a-sinner/main.ua +++ b/4-im-a-sinner/main.ua @@ -1,9 +1,8 @@ -W ← 400 # width -H ← 400 # height -S ← 0.08 # scale -I ← 30 # max iterations -Ox ← 0 # offset x -Oy ← 0 # offset y +W ← 400 # width +H ← 400 # height +S ← 0.08 # scale +F ← 20 # number of frames for gif +Fps ← 10 # frame rate for gif ToPixel ← ⍣( 0.16_0.16_0.21 ⍤.>0 @@ -13,9 +12,12 @@ ToPixel ← ⍣( | 0.31_0.23_0.64 ⍤.≤1.1⌵ | 0.09_0.57_0.6 ⍤.≤1.3⌵ | 0.16_0.16_0.21 - # | 0.74_0.58_0.98 ) -Iterations ← - ⊙(∿×2×) ◡(+ ⊓∿(∿+η) ∩(×.)) °ℂ -Img ← ∵(ToPixel Iterations) ⊞ℂ ∩(÷S -0.5 ÷W) ⊓(-Oy)(-Ox) ⇡H⇡W +Equation ← - ⊙(∿××) ◡(+ ⊓∿(∿+η) ∩(×.)) °ℂ +Grid ← ⊞ℂ ∩(÷S -0.5 ÷W) ⇡H⇡W +Img ← ∵(ToPixel Equation: 2) Grid &fwa "./4-im-a-sinner/output.png" img "png" Img + +Frames ← ≡(∵(ToPixel Equation) Grid) ×6 ÷F-÷2F⇡+1F +&fwa "./4-im-a-sinner/output.gif" gif Fps Frames diff --git a/4-im-a-sinner/output-400.gif b/4-im-a-sinner/output-400.gif Binary files differnew file mode 100644 index 0000000..dc4ad1f --- /dev/null +++ b/4-im-a-sinner/output-400.gif diff --git a/4-im-a-sinner/output.gif b/4-im-a-sinner/output.gif Binary files differnew file mode 100644 index 0000000..dc4ad1f --- /dev/null +++ b/4-im-a-sinner/output.gif |
