From afa25fe93d9e0458a5a3a5d9cbdc4f0e0152676a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 1 Apr 2017 23:09:46 +0200 Subject: [PATCH] Minor changes. --- sequence_generator.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sequence_generator.cc b/sequence_generator.cc index 887793a..2fa3912 100644 --- a/sequence_generator.cc +++ b/sequence_generator.cc @@ -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; -- 2.39.5