summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoroeloeloel <[email protected]>2020-12-07 08:56:18 -0500
committerAmir Rajan <[email protected]>2020-12-07 09:20:06 -0600
commit066b476ec5a239fc2395b3456d17da2570722d0f (patch)
tree875755f572c1679a84f9a25be38f5f60a72a3a4e
parent89dfd52f3cbc70521a6c173fc7b76308b809630d (diff)
downloaddragonruby-game-toolkit-contrib-066b476ec5a239fc2395b3456d17da2570722d0f.tar.gz
dragonruby-game-toolkit-contrib-066b476ec5a239fc2395b3456d17da2570722d0f.zip
Update geometry_docs.rb
Replaced incorrect use of 'sprite' with 'rect'.
-rw-r--r--dragon/geometry_docs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/dragon/geometry_docs.rb b/dragon/geometry_docs.rb
index 0396f60..5d9c9c3 100644
--- a/dragon/geometry_docs.rb
+++ b/dragon/geometry_docs.rb
@@ -23,7 +23,7 @@ S
Given an array with 4 elements representing a rect [x, y, w, h], this function returns a scaled rect. It accepts three arguments:
-~ratio~: the ratio by which to scale the sprite. A ratio of 2 will double the dimensions of the sprite while a ratio of 0.5 will halve its dimensions.
+~ratio~: the ratio by which to scale the rect. A ratio of 2 will double the dimensions of the rect while a ratio of 0.5 will halve its dimensions.
~anchor_x~ and ~anchor_y~ specify the point within the rect from which to resize it. Setting both to 0 will affect the width and height of the rect, leaving x and y unchanged. Setting both to 0.5 will scale all sides of the rect proportionally from the center.