From a65e35c64c06b65680cce59458a7bc26abf17928 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 5 Mar 2021 09:12:21 -0500 Subject: doc: Fix particles example. --- doc/api.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/api.texi') 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 -- cgit v1.2.3