setScale method
Sets the scaleX
and scaleY
transformation of the DisplayObject and
returns it.
If only one argument is provided, both scaleX
and scaleY
are set to the
same value.
Implementation
GDisplayObject setScale(double scaleX, [double? scaleY]) {
_scaleX = scaleX;
_scaleY = scaleY ?? scaleX;
$setTransformationChanged();
return this;
}