Created
June 18, 2016 22:30
-
-
Save manuscrypt/2934dfcdb567661218a0470e8e993d5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type alias Cell a = | |
{ pos: Vec2 | |
, content: VirtualDom.Node a | |
} | |
type Cols a | |
= Cols (List (Cell a)) (Cell a) (List (Cell a)) | |
type Rows a | |
= Rows (List (Cols a)) (Cols a) (List (Cols a)) | |
type alias Model a msg = | |
{ animation: Animation (Window.Size->Svg msg) | |
, rows : Rows a | |
, windowSize: Window.Size | |
} | |
type Msg | |
= MouseOver | |
| NoOp | |
| Animate Time | |
| OnSizeChanged Window.Size | |
| StartAnimation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment