Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 843 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 843 Bytes

julia.hoon

Produce a fractal from the Julia set on Urbit in Hoon.

The Julia set is one of the most famous fractal generators.

This implementation is written in Hoon. Save julia.hoon in your gen/ directory of your desk.

*%/julia/txt +julia 256

where 256 is the dimension you want. Change the file extension from txt to ppm and load it using GIMP or another tool to visualize the output.

Play with changing cx and cy, the complex coordinates, and maxiter (currently at 100).

For dimensions larger than 999, you will need to edit the PPM file directly to normalize the numeric output from Hoon's 1.000 preference.

PPM rendering routines borrowed and modified from Matt Newport (~hatdyl-toldeg)'s raytracer.