Rect.scale

Scales the size and origin of a rectangle horizontaly by s_h, and vertically by s_v. The result res is normalized.

class Rect
void
scale
(
float sH
,
float sV
,)

Parameters

sH float

horizontal scale factor

sV float

vertical scale factor

res graphene.rect.Rect

return location for the scaled rectangle