Bruce Vines wrote:
>
> While this is written in OCaml, it's close to what it would look like in
> C. I'm trying to plot a green circle, wait for one second, plot a black
> circle over the green circle (erase it), wait another second, and then
> plot the green circle again. There are two problems
I'm trying to do a bouncing ball simulation and use plplot for the
graphics utility. Here's a simple piece of code I've been trying to get
to work:
open Plplot
let green = 3 ;;
let black = 0 ;;
let hide () =
plcol0 black ;
plarc 0.5 0.5 0.031 0.031 0.0 360.0 true
let show () =
plcol