summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-03-05 09:12:21 -0500
committerDavid Thompson <dthompson2@worcester.edu>2021-03-05 09:12:21 -0500
commita65e35c64c06b65680cce59458a7bc26abf17928 (patch)
tree08fbc9e5a95e0e2c2793b48b1abb4fadfd052d61 /doc
parent77fd1604509a7e5153b696f0d5535fd67ddbd97b (diff)
doc: Fix particles example.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 00f0f3a..07005a6 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -2403,8 +2403,8 @@ Below is an example of an emitter that spawns 16 particles per frame
at the coordinates @code{(320, 240)}:
@example
-(use-modules (chickadee math vector))
-(define emitter (make-particle-emitter (vec2 320.0 240.0) 16))
+(use-modules (chickadee math rect))
+(define emitter (make-particle-emitter (make-rect 0.0 0.0 320.0 240.0) 16))
(add-particle-emitter particles emitter)
@end example