Next: ClutterBehaviourOpacity, Previous: ClutterBehaviourDepth, Up: Top
A behaviour interpolating position along an ellipse
<clutter-behaviour-ellipse> interpolates actors along a path defined by
an ellipse.
Note, on applying an ellipse behaviour to an actor its position will be set to what is dictated by the ellipses initial position.
Derives from
<clutter-behaviour>.This class defines the following slots:
center- Center of ellipse
width- Width of ellipse
height- Height of ellipse
angle-start- Initial angle
angle-end- Final angle
angle-tilt-x- Tilt of the ellipse around x axis
angle-tilt-y- Tilt of the ellipse around y axis
angle-tilt-z- Tilt of the ellipse around z axis
direction- Direction of rotation
<clutter-alpha>) (x int) (y int) (width int) (height int) (direction <clutter-rotate-direction>) (start double) (end double) (ret <clutter-behaviour>)Creates a behaviour that drives actors along an elliptical path with given center, width and height; the movement starts at angle-start degrees (with 0 corresponding to 12 o'clock) and ends at angle-end degrees. Angles >= 360 degrees get clamped to the canonical interval <0, 360), if start == end, the behaviour will rotate by exacly 360 degrees.
- alpha
- a
<clutter-alpha>, or ‘#f’- x
- x coordinace of the center
- y
- y coordiance of the center
- width
- width of the ellipse
- height
- height of the ellipse
- direction
<clutter-rotate-direction>of rotation- start
- angle in degrees at which movement starts, between 0 and 360
- end
- angle in degrees at which movement ends, between 0 and 360
- ret
- the newly created
<clutter-behaviour-ellipse>Since 0.4
<clutter-behaviour-ellipse>) (width int)Sets the width of the elliptical path.
- self
- a
<clutter-behaviour-ellipse>- width
- width of the ellipse
Since 0.4
<clutter-behaviour-ellipse>) (ret int)Gets the width of the elliptical path.
- self
- a
<clutter-behaviour-ellipse>- ret
- the width of the path
Since 0.4
<clutter-behaviour-ellipse>) (angle_tilt_x double) (angle_tilt_y double) (angle_tilt_z double)Sets the angles at which the ellipse should be tilted around it's center.
- self
- a
<clutter-behaviour-ellipse>- angle-tilt-x
- tilt of the elipse around the center in X axis in degrees.
- angle-tilt-y
- tilt of the elipse around the center in Y axis in degrees.
- angle-tilt-z
- tilt of the elipse around the center in Z axis in degrees.
Since 0.4
<clutter-behaviour-ellipse>) (angle_tilt_x double) (angle_tilt_y double) (angle_tilt_z double)Gets the tilt of the ellipse around the center in Y axis.
- self
- a
<clutter-behaviour-ellipse>- angle-tilt-x
- return location for tilt angle on the X axis, or ‘
#f’.- angle-tilt-y
- return location for tilt angle on the Y axis, or ‘
#f’.- angle-tilt-z
- return location for tilt angle on the Z axis, or ‘
#f’.Since 0.4