(ws *Workspace)
| 114 | } |
| 115 | |
| 116 | func initialModel(ws *Workspace) model { |
| 117 | m := model{ |
| 118 | mode: ModeBoard, |
| 119 | workspace: ws, |
| 120 | board: ws.ActiveBoard(), |
| 121 | now: time.Now(), |
| 122 | saver: NewSaver(ws, 400*time.Millisecond), |
| 123 | hoverStr: -1, |
| 124 | } |
| 125 | return m |
| 126 | } |
| 127 | |
| 128 | // startBoardAnim captures the current board + its stars as the "from" |
| 129 | // frame of a board-switch crossfade. Call it BEFORE mutating the |