feat: Add more fractals

This commit is contained in:
2026-09-15 19:28:49 +02:00
parent d77baf5e15
commit 7f4f31a09f
6 changed files with 269 additions and 14 deletions
+4
View File
@@ -22,6 +22,8 @@ pub struct RefRequest {
pub precision: usize,
pub kind: FractalKind,
pub power: u32,
/// Distortion constant for the Phoenix map (ignored by other kinds).
pub phoenix_p: (f64, f64),
}
pub struct RefResult {
@@ -101,6 +103,7 @@ fn compute(req: &RefRequest) -> Vec<[f32; 2]> {
req.precision,
req.kind,
req.power,
req.phoenix_p,
)
} else {
compute_set_reference(
@@ -110,6 +113,7 @@ fn compute(req: &RefRequest) -> Vec<[f32; 2]> {
req.precision,
req.kind,
req.power,
req.phoenix_p,
)
}
}