set_scale_with_gravity


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public void set_scale_with_gravity (double scale_x, double scale_y, Gravity gravity)

Warning: set_scale_with_gravity is deprecated since 1.12.

Scales an actor with the given factors around the given center point.

Note:

Use set_pivot_point to set the scale center using normalized coordinates instead.

The center point is specified as one of the compass directions in Gravity. For example, setting it to north will cause the top of the actor to remain unchanged and the rest of the actor to expand left, right and downwards.

The scale_x and scale_y properties are animatable.

Parameters:

this

A Actor

scale_x

double factor to scale actor by horizontally.

scale_y

double factor to scale actor by vertically.

gravity

the location of the scale center expressed as a compass direction.