Transform.scale

Scales next in 2-dimensional space by the given factors.

Use gsk.transform.Transform.scale3d to scale in all 3 dimensions.

class Transform
scale
(
float factorX
,
float factorY
)

Parameters

factorX float

scaling factor on the X axis

factorY float

scaling factor on the Y axis

Return Value

Type: gsk.transform.Transform

The new transform