[gtk/matthiasc/lottie2] Add a curve to the default test path



commit b0abd490d15019769f246b83d08f45f7fccb9b45
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 26 10:39:04 2020 -0500

    Add a curve to the default test path

 tests/curve2.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/curve2.c b/tests/curve2.c
index d05863d147..67cd86a160 100644
--- a/tests/curve2.c
+++ b/tests/curve2.c
@@ -278,6 +278,9 @@ init_demo (DemoWidget  *demo,
   builder = gsk_path_builder_new ();
   gsk_path_builder_add_circle (builder, &GRAPHENE_POINT_INIT (150, 150), 100);
   gsk_path_builder_add_rect (builder, 100, 100, 100, 100);
+  gsk_path_builder_move_to (builder, 300, 150);
+  gsk_path_builder_curve_to (builder, 300, 50, 400, 50, 400, 150);
+  gsk_path_builder_curve_to (builder, 400, 250, 500, 250, 500, 150);
   path = gsk_path_builder_free_to_path (builder);
 
   demo_widget_set_path (demo, path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]