fix it again (last change was mostly a mistake)
This commit is contained in:
parent
a588ef94d4
commit
32b55ed344
|
@ -144,7 +144,7 @@ pub fn spiral(k: u32) -> impl Fn(f64) -> [f64; 2] {
|
|||
let x2pi = (k as f64) * core::f64::consts::TAU;
|
||||
move |t: f64| {
|
||||
let tstretch = t - 0.5;
|
||||
let tstretch = tstretch.abs();
|
||||
let tstretch = tstretch * tstretch;
|
||||
let (ttxsin, ttxcos) = (t * x2pi).sin_cos();
|
||||
[tstretch * ttxcos, tstretch * ttxsin]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue