summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.toml2
-rw-r--r--source/benoit/benoit/application/colour.rs4
-rw-r--r--source/benoit/benoit/configuration/default.rs2
4 files changed, 9 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85da620..5e503d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+# 26
+
+* Update colouring for small iteration counts
+* Revert start zoom for interactive renders
+
# 25
* Update colouring (smooth)
diff --git a/Cargo.toml b/Cargo.toml
index 8a826f2..c6ccb63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "benoit"
-version = "0.29.0"
+version = "0.30.0"
authors = ["Gabriel Bjørnager Jensen"]
edition = "2021"
description = "Mandelbrot renderer."
diff --git a/source/benoit/benoit/application/colour.rs b/source/benoit/benoit/application/colour.rs
index 701d49f..d734f65 100644
--- a/source/benoit/benoit/application/colour.rs
+++ b/source/benoit/benoit/application/colour.rs
@@ -33,9 +33,9 @@ impl Application {
let (red, green, blue) = if iteration_count != self.maximum_iteration_count {
let distance = square_distance_buffer[pixel as usize].sqrt();
- let mut factor = (iteration_count as f32 + 1.0 - distance.log2().log2()) / 16.0 % 1.0;
+ let factor_range = 16.0_f32.min(self.maximum_iteration_count as f32);
- factor %= 1.0;
+ let mut factor = (iteration_count as f32 + 1.0 - distance.log2().log2()) / factor_range % 1.0;
factor = (if factor >= 1.0 / 2.0 {
1.0 - factor
diff --git a/source/benoit/benoit/configuration/default.rs b/source/benoit/benoit/configuration/default.rs
index 5442a99..b8649b5 100644
--- a/source/benoit/benoit/configuration/default.rs
+++ b/source/benoit/benoit/configuration/default.rs
@@ -43,7 +43,7 @@ impl Configuration {
center_real: Float::with_val(PRECISION, 0.0),
center_imaginary: Float::with_val(PRECISION, 0.0),
- zoom: Float::with_val(PRECISION, 1.0 / 4.0),
+ zoom: Float::with_val(PRECISION, 1.0),
maximum_iteration_count: 0x100,
dump_path: "./render/".to_string(),