summaryrefslogtreecommitdiff
path: root/examples/lines.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-08-20 20:22:44 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-08-23 08:01:11 -0400
commiteceae08c4f6985c3cc30191ab33b22302578b81e (patch)
treeead018aabef22bbd0097df991f6a900bc7b93883 /examples/lines.scm
parent89ed33ac799b9b55b4694c46f8e19a24d343e99b (diff)
math: vector: Add read syntax.
* chickadee/math/vector.scm (read-vec): New procedure. Extend reader. * examples/lines.scm: Use new vector read syntax. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto.
Diffstat (limited to 'examples/lines.scm')
-rw-r--r--examples/lines.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lines.scm b/examples/lines.scm
index 5e800e0..75aadf1 100644
--- a/examples/lines.scm
+++ b/examples/lines.scm
@@ -8,8 +8,8 @@
(define lines
(list-tabulate 48
(lambda (n)
- (list (vec2 (random 640) (random 480))
- (vec2 (random 640) (random 480))
+ (list #v((random 640) (random 480))
+ #v((random 640) (random 480))
(make-color (random:uniform)
(random:uniform)
(random:uniform)