feat: add lambda fractal

This commit is contained in:
2026-09-16 20:32:48 +02:00
parent 0b90b72a00
commit afcd3c74da
6 changed files with 276 additions and 103 deletions
+4
View File
@@ -24,6 +24,8 @@ pub struct RefRequest {
pub power: u32,
/// Distortion constant for the Phoenix map (ignored by other kinds).
pub phoenix_p: (f64, f64),
/// Distortion constant for the Lambda map (ignored by other kinds).
pub lambda_l: (f64, f64),
}
pub struct RefResult {
@@ -104,6 +106,7 @@ fn compute(req: &RefRequest) -> Vec<[f32; 2]> {
req.kind,
req.power,
req.phoenix_p,
req.lambda_l,
)
} else {
compute_set_reference(
@@ -114,6 +117,7 @@ fn compute(req: &RefRequest) -> Vec<[f32; 2]> {
req.kind,
req.power,
req.phoenix_p,
req.lambda_l,
)
}
}