From 381101385d632b169ce87fa29873c5bdb0a038b0 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 15 Feb 2025 18:39:00 +0530 Subject: Add julia set fractal --- 6-julia/main.ua | 26 ++++++++++++++++++++++++++ 6-julia/output-600.gif | Bin 0 -> 248956 bytes 6-julia/output-600.png | Bin 0 -> 74018 bytes 6-julia/output.gif | Bin 0 -> 248956 bytes 6-julia/output.png | Bin 0 -> 74018 bytes README.md | 11 ++++++++++- 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 6-julia/main.ua create mode 100644 6-julia/output-600.gif create mode 100644 6-julia/output-600.png create mode 100644 6-julia/output.gif create mode 100644 6-julia/output.png diff --git a/6-julia/main.ua b/6-julia/main.ua new file mode 100644 index 0000000..5fca4d5 --- /dev/null +++ b/6-julia/main.ua @@ -0,0 +1,26 @@ +W ← 200 # width +H ← 200 # height +S ← 0.35 # scale +I ← 30 # max iterations +Ox ← 0 # offset x +Oy ← 0 # offset y +F ← 24 # number of frames for gif +Fps ← 8 # frame rate for gif + +ToPixel ← ⍣( + 0.18_0.2_0.25 ⍤.=I +| 0.92_0.93_0.96 ⍤.≥20 +| 0.37_0.5_0.67 ⍤.>13 +| 0.64_0.75_0.55 ⍤.>11 +| 0.74_0.38_0.41 ⍤.>8 +| 0_0_0 +) + +C ← ×0.7885 ⁿ(×i)e +Iterations ← ◌:◌: ⌵ ⍢(⊙(+⊙.×.) +1|× ⊙(<100⌵) -

Mandelbrot set fractal

+

Mandelbrot Set

@@ -38,5 +38,14 @@ https://github.com/user-attachments/assets/18ce9a04-b597-4340-876d-8585a054c6ad   + + + +

Julia Set

+ + + + + -- cgit v1.3.1