Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Show a countdown timer in a dialog window that returns True when time runs out, or $Canceled otherwise
ResourceFunction["CountdownDialog"][label] shows a countdown dialog which displays label. | |
ResourceFunction["CountdownDialog"][label,sec] counts down from the given time specified in seconds. |
Background | GrayLevel[0.95] | the background color of the countdown timer |
"Color" | Black | the starting color of the outer ring |
FontSize | 50 | the size of the countdown number |
ImageSize | 100 | the size of the countdown timer |
Modal | True | whether to allow interaction with other notebooks while running |
"WarningColor" | Red | the color that the outer ring gradually changes into as time runs out |
Show a countdown timer:
In[1]:= |
![]() |
Out[1]= |
![]() |
Specify the time limit:
In[2]:= |
![]() |
Out[2]= |
![]() |
Any expression can be used as the label:
In[3]:= |
![]() |
Out[3]= |
![]() |
Change the primary color:
In[4]:= |
![]() |
Out[4]= |
![]() |
Change the background color:
In[5]:= |
![]() |
Out[5]= |
![]() |
By default, the color of the progress indicator gradually turns red as time runs out. Specify a different color instead:
In[6]:= |
![]() |
Out[6]= |
![]() |
Specify the size of the progress indicator:
In[7]:= |
![]() |
Out[7]= |
![]() |
Change the font size of the timer:
In[8]:= |
![]() |
Out[8]= |
![]() |
Launch a rocket using a countdown:
In[10]:= |
![]() |
In[11]:= |
![]() |
In[12]:= |
![]() |
Have a bird warn you about your poor decisions:
In[13]:= |
![]() |
Out[13]= |
![]() |
Reflect on impermanence:
In[14]:= |
![]() |
Out[14]= |
![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License