Method: Magick::Image#ticks_per_second=

Defined in:
ext/RMagick/rmimage.cpp

#ticks_per_second=(tps) ⇒ Numeric

Set the number of ticks per second. This attribute is used in conjunction with the delay attribute to establish the amount of time that must elapse between frames in an animation.The default is 100.

Parameters:

  • tps (Numeric)

    ticks per second

Returns:

  • (Numeric)

    the given value



14412
14413
14414
14415
14416
14417
14418
# File 'ext/RMagick/rmimage.cpp', line 14412

VALUE
Image_ticks_per_second_eq(VALUE self, VALUE tps)
{
    Image *image = rm_check_frozen(self);
    image->ticks_per_second = NUM2ULONG(tps);
    return tps;
}