From d54995cad9ddf652cd2f7abb128d5d251f9454f1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 25 Oct 2022 07:25:01 -0400 Subject: projects: Update chickadee for 0.9.0 release. --- manuals/chickadee/Sprites.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'manuals/chickadee/Sprites.html') diff --git a/manuals/chickadee/Sprites.html b/manuals/chickadee/Sprites.html index 2575e87..6069f8f 100644 --- a/manuals/chickadee/Sprites.html +++ b/manuals/chickadee/Sprites.html @@ -98,15 +98,16 @@ interface for working with sprites. Bitmaps are stored in textures draw-sprite procedure.

-
Procedure: draw-sprite texture position [#:tint white] [#:origin] [#:scale] [#:rotation] [#:blend-mode] [#:rect]
+
Procedure: draw-sprite texture position [#:blend-mode] [#:origin] [#:rect] [#:rotation] [#:scale] [#:shear] [#:tint white]

Draw texture at position.

Optionally, other transformations may be applied to the sprite. rotation specifies the angle to rotate the sprite, in radians. -scale specifies the scaling factor as a 2D vector. All -transformations are applied relative to origin, a 2D vector, -which defaults to the lower-left corner. +scale specifies the scaling factor as a 2D vector. shear +specifies the shearing factor as a 2D vector. All transformations are +applied relative to origin, a 2D vector, which defaults to the +lower-left corner.

tint specifies the color to multiply against all the sprite’s pixels. By default white is used, which does no tinting at all. @@ -159,7 +160,7 @@ are full to accomodate as many sprites as necessary.

-
Procedure: sprite-batch-add! batch position [#:origin] [#:scale] [:rotation] [#:tint white] [#:texture-region]
+
Procedure: sprite-batch-add! batch position [#:origin] [:rotation] [#:scale] [#:shear] [#:texture-region] [#:tint white]

Add sprite located at position to batch.

-- cgit v1.2.3