aboutsummaryrefslogtreecommitdiffstats
path: root/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo.c')
-rw-r--r--demo.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/demo.c b/demo.c
index 6157fbd..ff6ed3a 100644
--- a/demo.c
+++ b/demo.c
@@ -21,12 +21,12 @@ main(void)
{30, 15},
{20, 25},
{10, 15}
-#elif 0
+#elif 1
{20, 5},
{35, 15},
{20, 25},
{5, 15}
-#elif 0
+#elif 1
{5.25, 5.25},
{35.75, 5.25},
{35.75, 25.75},
@@ -42,16 +42,18 @@ main(void)
raster = rtgrpblib_create_raster(width, height);
image = calloc(width * height, sizeof(*image));
-#if 0
+ rtgrpblib_set_draftness(raster, -1);
+
+#if 1
n = sizeof(points) / sizeof(*points);
for (i = 0; i < n; i++) {
j = (i + 1) % n;
rtgrpblib_draw_linear_bezier(raster, P(i), P(j));
}
-#elif 0
+#elif 1
rtgrpblib_draw_quadratic_bezier(raster, P(2), P(3), P(0));
rtgrpblib_draw_linear_bezier(raster, P(0), P(2));
-#elif 0
+#elif 1
rtgrpblib_draw_cubic_bezier(raster, P(0), P(1), P(2), P(3));
rtgrpblib_draw_linear_bezier(raster, P(3), P(0));
#else