module salix::canvas::Heart
rascal-0.40.17
salix-contrib-0.2.7
Usage
import salix::canvas::Heart;
Source code
http://github.com/usethesource/salix-contrib/src/main/rascal/salix/canvas/Heart.rsc
Dependencies
import salix::App;
import salix::HTML;
import salix::Index;
import salix::canvas::Canvas;
alias Model
tuple[str x, str y, str color]
function init
Model init(str x, str y)
function heartApp
SalixApp[Model] heartApp(str id, str x, str y)
function heartWebApp
App[Model] heartWebApp(str x, str y)
data Msg
data Msg
= flipColor()
;
function update
Model update(flipColor(), Model m)
function view
void view(Model m)