From 03072ef67af0623758a660e2cd3fb5e153133efa Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 24 May 2023 08:09:03 -0400 Subject: Update chickadee manual. --- manuals/chickadee/Vector-Paths.html | 62 ++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'manuals/chickadee/Vector-Paths.html') diff --git a/manuals/chickadee/Vector-Paths.html b/manuals/chickadee/Vector-Paths.html index 68af3d8..81d6307 100644 --- a/manuals/chickadee/Vector-Paths.html +++ b/manuals/chickadee/Vector-Paths.html @@ -1,6 +1,6 @@ - - + --> + - + Vector Paths (The Chickadee Game Toolkit) - - - - - - - - - - - + + + + + + + + + + + - + @@ -84,7 +84,7 @@ ul.no-bullet {list-style: none}

Next: , Previous: , Up: Graphics   [Contents][Index]

-
+

5.3.5 Vector Paths

The (chickadee graphics path) module can be used to draw lines, @@ -107,13 +107,13 @@ the first.

Procedure: path . commands

Return a new path that follows commands.

-
-
(path (move-to (vec2 50.0 50.0))
-      (line-to (vec2 500.0 50.0))
-      (line-to (vec2 400.0 200.0))
-      (bezier-to (vec2 500.0 250.0) (vec2 380.0 300.0) (vec2 400.0 400.0))
-      (line-to (vec2 300.0 400.0))
-      (close-path))
+
+
(path (move-to (vec2 50.0 50.0))
+      (line-to (vec2 500.0 50.0))
+      (line-to (vec2 400.0 200.0))
+      (bezier-to (vec2 500.0 250.0) (vec2 380.0 300.0) (vec2 400.0 400.0))
+      (line-to (vec2 300.0 400.0))
+      (close-path))
 
@@ -257,10 +257,10 @@ combined together to form arbitrarily complex pictures.
  • stroke-cap
  • -
    -
    (with-style ((stroke-color green)
    -             (stroke-width 4.0))
    -  (stroke (circle (vec2 100.0 100.0) 50.0)))
    +
    +
    (with-style ((stroke-color green)
    +             (stroke-width 4.0))
    +  (stroke (circle (vec2 100.0 100.0) 50.0)))
     
    @@ -450,7 +450,7 @@ the image, should a painter later be associated with this canvas.

    Render canvas to the screen.

    -
    +

    Next: , Previous: , Up: Graphics   [Contents][Index]

    -- cgit v1.2.3