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;
88fn main ( ) {
99 println ! ( "Mandelbrot Renderer" ) ;
1010
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+
1113 let mut s = String :: new ( ) ;
1214 print ! ( "File to render: " ) ;
1315 let _ = stdout ( ) . flush ( ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl ColourMethod2 {
6666 ( 0 , 0 , 0 )
6767 } else {
6868 // 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 ;
7070
7171 let colour = colours[ hue] ;
7272
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pub struct Perturbation {}
1010// pixel_data.par_chunks_mut(1)
1111// .for_each(|pixel_data| {
1212// for packet in pixel_data {
13- // // TODO investigate setting up a floatexp-type thing which only rescales every 500 or so iterations
1413//
1514// // normal
1615// while packet.iteration < maximum_iteration {
You can’t perform that action at this time.
0 commit comments