[gtk/wip/matthiasc/lottie-stroke: 56/57] debugging shapes




commit c8396ae9719ab03065824be70f7807f8b095860f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 29 23:51:04 2020 -0500

    debugging shapes

 tests/curve3.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/tests/curve3.c b/tests/curve3.c
index f413f7b412..f38a6ff15c 100644
--- a/tests/curve3.c
+++ b/tests/curve3.c
@@ -174,7 +174,7 @@ static void
 init_demo (DemoWidget *demo, float squeeze)
 {
   GskPathBuilder *builder;
-  GskPath *path;
+  GskPath *path, *path2;
 
   builder = gsk_path_builder_new ();
 
@@ -201,6 +201,13 @@ init_demo (DemoWidget *demo, float squeeze)
 
   gsk_path_builder_move_to (builder, 20, 20);
 
+  path2 = gsk_path_parse ("M 500 100"
+                          "c 0 100, 100, 100, 200 0"
+                          "l 0 300"
+                          "c 150 50, 70 130, 200, 200");
+
+  gsk_path_builder_add_path (builder, path2);
+
   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]