example_simple
Types
pub type Model {
Model(x: Float, y: Float, animations: Animations)
}
Constructors
-
Model(x: Float, y: Float, animations: Animations)
pub type Msg {
Left
Right
Top
Bottom
Tick(time_offset: Float)
}
Constructors
-
Left
-
Right
-
Top
-
Bottom
-
Tick(time_offset: Float)
Functions
pub fn main() -> Result(fn(Msg) -> Nil, Error)
pub fn render(model: Model) -> Element(Msg)
pub fn update(model: Model, msg: Msg) -> #(Model, Cmd(Msg))