RectFromNote builds the source rect for a note at the board's zoom (SCREEN coords, no bob — transitions should start from the stable resting position, not mid-bounce).
(n *Note, zoom int)
| 55 | // (SCREEN coords, no bob — transitions should start from the stable |
| 56 | // resting position, not mid-bounce). |
| 57 | func RectFromNote(n *Note, zoom int) Rect { |
| 58 | return n.ScreenRect(zoom) |
| 59 | } |
| 60 | |
| 61 | func NewTransitionIn(n *Note, zoom int) *Transition { |
| 62 | return &Transition{ |
no test coverage detected