Minor changes.
authorFrancois Fleuret <francois@fleuret.org>
Sat, 1 Apr 2017 21:09:46 +0000 (23:09 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sat, 1 Apr 2017 21:09:46 +0000 (23:09 +0200)
sequence_generator.cc

index 887793a..2fa3912 100644 (file)
@@ -50,7 +50,7 @@ void draw_universe_on_canvas(CanvasCairo *canvas, scalar_t scaling,
 void draw_grabbing_point_on_canvas(CanvasCairo *canvas, scalar_t scaling,
                                    scalar_t xg, scalar_t yg,
                                    scalar_t r, scalar_t g, scalar_t b) {
-  scalar_t radius = 1/scaling;
+  scalar_t radius = 1 / scaling;
   int n = 36;
   scalar_t xp[n], yp[n];
   for(int k = 0; k < n; k++) {
@@ -77,8 +77,8 @@ extern "C" void fl_generate_sequence(int nb_images,
   const scalar_t world_height = height * super_definition;
   const scalar_t scaling = 1 / super_definition;
 
-  int nb_iterations_per_dt = 50;
-  scalar_t dt = 5.0 / scalar_t(nb_iterations_per_dt);
+  int nb_iterations_per_dt = 100;
+  scalar_t dt = 10.0 / scalar_t(nb_iterations_per_dt);
 
   //////////////////////////////////////////////////////////////////////
 
@@ -142,9 +142,9 @@ extern "C" void fl_generate_sequence(int nb_images,
         scalar_t shape_size;
 
         if(random_shape_size) {
-          shape_size = 80 + 80 * drand48();
+          shape_size = (10 + 10 * drand48()) * super_definition;
         } else {
-          shape_size = 120;
+          shape_size = 15 * super_definition;
         }
 
         scalar_t red, green, blue;