summaryrefslogtreecommitdiff
path: root/doc/api.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api.texi')
-rw-r--r--doc/api.texi11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 469c5d7..65a7020 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1836,16 +1836,17 @@ interface for working with sprites. Bitmaps are stored in textures
@code{draw-sprite} procedure.
@deffn {Procedure} draw-sprite texture position @
- [#:tint white] [#:origin] [#:scale] [#:rotation] [#:blend-mode] @
- [#:rect]
+ [#:blend-mode] [#:origin] [#:rect] [#:rotation] [#:scale] @
+ [#:shear] [#:tint white]
Draw @var{texture} at @var{position}.
Optionally, other transformations may be applied to the sprite.
@var{rotation} specifies the angle to rotate the sprite, in radians.
-@var{scale} specifies the scaling factor as a 2D vector. All
-transformations are applied relative to @var{origin}, a 2D vector,
-which defaults to the lower-left corner.
+@var{scale} specifies the scaling factor as a 2D vector. @var{shear}
+specifies the shearing factor as a 2D vector. All transformations are
+applied relative to @var{origin}, a 2D vector, which defaults to the
+lower-left corner.
@var{tint} specifies the color to multiply against all the sprite's
pixels. By default white is used, which does no tinting at all.