Advertisement
Guest User

Untitled

a guest
Aug 30th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.28 KB | None | 0 0
  1. #load "graphics.cma";;
  2.  
  3. open Graphics;;
  4.  
  5. (* let x = 10
  6.  * let y = 10 *)
  7.  
  8. let () =
  9.   open_graph " 900x600";;
  10.   loop_at_exit [Key_pressed; Button_down]
  11.     (fun event ->
  12.       if event.keypressed then
  13.         draw_char event.key
  14.       else
  15.           fill_circle 10 10 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement