Skip to content
Snippets Groups Projects
Commit 284fd1d0 authored by Finn Bear's avatar Finn Bear
Browse files

Better fractal arrows.

parent b85c620b
No related branches found
No related tags found
No related merge requests found
......@@ -363,13 +363,16 @@ impl Slide for Fractals {
fill: Color32::RED,
stroke: Stroke::default(),
}));
for pos in mandelbrot_iter(last_pos).take(5) {
for (i, pos) in mandelbrot_iter(last_pos).take(16).enumerate() {
Arrow {
origin: to_screen
* ((last_pos.to_vec2() + Vec2::splat(2f32)) * 0.25).to_pos2(),
tip: to_screen
* ((pos.to_vec2() + Vec2::splat(2f32)) * 0.25).to_pos2(),
stroke: Color32::LIGHT_BLUE,
stroke: set_alpha(
Color32::LIGHT_BLUE,
1.0 / (1.0 + i as f32 * 0.2),
),
stroke_width: 4.0,
..Arrow::default()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment