From 55ddf3312d3075e83263fa3875ec9d0101c7b563 Mon Sep 17 00:00:00 2001 From: Jacob Date: Mon, 16 Dec 2024 00:09:46 -0500 Subject: [PATCH] Reduce default frame count to a sane number. --- README.md | 6 ++++-- src/main.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bb44023..8d25fed 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Natural Log Fractal -Created by iterating `z' = ln(-z) / ln(z)`. +Created by iterating `z' = ln(-z) / ln(z)`. I haven't seen this fractal +anywhere else, discovered it while messing around with some shader code. +Reproduced here to learn multithreading in Rust. Usage: @@ -10,7 +12,7 @@ make ``` This will generate a series of frames zooming into the fractal (default is -200), and link them together into a video. May take a while to run, depending +20), and link them together into a video. May take a while to run, depending on your CPU. ![h.png](h.png) diff --git a/src/main.rs b/src/main.rs index 3fd96eb..41bb397 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use image::{ImageBuffer, Rgb}; use rayon::prelude::*; // Number of frames to generate. -const FRAMES = 200; +const FRAMES = 20; // Frame size. const IMGW: u32 = 1024;