Message Boards Message Boards

Flash (blink) an object in a graphics?

Is it possible to draw an object in a graph that flashes (blinks) for a certain time?

Some kind of option?

POSTED BY: Ernesto Espinosa

Depending of your need:

Plot[Exp[-x^2], {x, -5, 5}, Epilog -> {Dynamic@AbsolutePointSize[15 Clock[] + 1], Orange,  Point[{0, 1}]}]

or

DynamicModule[{t = 1},
 Column@{
   Plot[Exp[-x^2], {x, -5, 5}, 
    Epilog -> {Dynamic@AbsolutePointSize[t], Orange, Point[{0, 1}]}],
   Button["blink", RunScheduledTask[t++, {.01, 20}]]
   }
 ]
POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract