summaryrefslogtreecommitdiff
path: root/doc/api.texi
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-08-01 16:06:49 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-08-01 16:08:58 -0400
commitf24c10e7fc455c092bff051d57a066d81fd77ec3 (patch)
tree1adb361ef54fb71978d029fe699c17e2cfa78016 /doc/api.texi
parent7e9c865bc248a996ba9a360eb1392d05aa8a2010 (diff)
graphics: sprite: Add #:shear argument to draw-sprite.
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.