[gtk/wip/matthiasc/lottie-stroke: 54/60] debugging shapes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/lottie-stroke: 54/60] debugging shapes
- Date: Mon, 30 Nov 2020 19:40:20 +0000 (UTC)
commit 1d309a029e33f36ad0dc04334001dc1a55447eaf
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]