Processing with SML

Load examples:

val start = () val white = (255, 255, 255) fun setup p = (background p white; frameRate p 60) fun draw p () = let val (w,h) = (real (width p), real (height p)) val (mx,my) = (real (mouseX p), real (mouseY p)) val _ = line p (0.0,0.0) (mx,my) in () end val _ = run setup draw start