shineTickCmd schedules the next shine animation frame.
()
| 226 | |
| 227 | // shineTickCmd schedules the next shine animation frame. |
| 228 | func shineTickCmd() tea.Cmd { |
| 229 | return tea.Tick(shineFrameMs*time.Millisecond, func(time.Time) tea.Msg { |
| 230 | return shineTickMsg{} |
| 231 | }) |
| 232 | } |
| 233 | |
| 234 | // easeInOutCubic maps t ∈ [0,1] to [0,1] with a smooth-start/smooth-end |
| 235 | // shape: slow entrance, fast middle, slow exit. The classic curve for |