- rect-scale rect factorprocedure
- rect-scale! rect factor #!optional destprocedure
Efficiently multiply the X, Y, W, and H values of rect by factor (a float or integer). E.g. factor 0.5 halves the values, factor 2.0 doubles the values. sdl2:rect can only hold integer values, so the results will be truncated to integers. The results will be clamped to the range -2147483648 to 2147483647.
- rect-scale returns a new managed sdl2:rect.
- rect-scale! modifies and returns dest. If dest is omitted, rect is modified and returned.
Requires sdl2 egg 0.2.0 or higher.