summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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