File tree Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Expand file tree Collapse file tree 4 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ use std::fs::File;
8
8
fn main ( ) {
9
9
println ! ( "Mandelbrot Renderer" ) ;
10
10
11
+ // TODO on some images, we may need to check the imaginary part of the floatexp to make sure that is not too large.
12
+
11
13
let mut s = String :: new ( ) ;
12
14
print ! ( "File to render: " ) ;
13
15
let _ = stdout ( ) . flush ( ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl ColourMethod2 {
66
66
( 0 , 0 , 0 )
67
67
} else {
68
68
// 0.1656
69
- let hue = ( 10 .0 * pixel. iteration as f64 ) as usize % 8192 ;
69
+ let hue = ( 100 .0 * pixel. iteration as f64 ) as usize % 8192 ;
70
70
71
71
let colour = colours[ hue] ;
72
72
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pub struct Perturbation {}
10
10
// pixel_data.par_chunks_mut(1)
11
11
// .for_each(|pixel_data| {
12
12
// for packet in pixel_data {
13
- // // TODO investigate setting up a floatexp-type thing which only rescales every 500 or so iterations
14
13
//
15
14
// // normal
16
15
// while packet.iteration < maximum_iteration {
You can’t perform that action at this time.
0 commit comments