documentation index ◦ reference manual ◦ function index
Function: | anim.Blink | (image, on=0.5, off=0.5, rise=0.5, set=0.5, high=1.0, low=0.0, offset=0.0, anim_timebase=False, **properties): |
This takes as an argument an image or widget, and blinks that image by varying its alpha. The sequence of phases is on - set - off - rise - on - ... All times are given in seconds, all alphas are fractions between 0 and 1.
image - The image or widget that will be blinked.
on - The amount of time the widget spends on, at high alpha.
off - The amount of time the widget spends off, at low alpha.
rise - The amount time the widget takes to ramp from low to high alpha.
set - The amount of time the widget takes to ram from high to low.
high - The high alpha.
low - The low alpha.
offset - A time offset, in seconds. Use this to have a blink that does not start at the start of the on phase.
anim_timebase - If True, use the animation timebase, if false, the displayable timebase.
init: image ctc = anim.Blink("arrow.png"))