From 066b476ec5a239fc2395b3456d17da2570722d0f Mon Sep 17 00:00:00 2001 From: oeloeloel <26174257+oeloeloel@users.noreply.github.com> Date: Mon, 7 Dec 2020 08:56:18 -0500 Subject: Update geometry_docs.rb Replaced incorrect use of 'sprite' with 'rect'. --- dragon/geometry_docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3