Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Problem with Graph module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas FRANCOIS <nicolas.francois@f...>
Subject: Re: [Caml-list] Re: Problem with Graph module
Le Tue, 18 Jun 2002 19:01:39 +0200 Nicolas FRANCOIS (AKA El Bofo)
<nicolas.francois@free.fr> a écrit :

> Great. Thanks for the tip. Euh, and what if I have to test several
> colors? Oh, yes, here it is :
> 
> let screen_from_color c =
>   set_color x;
>   plot 0 0;
>   point_color 0 0;;
>  
> Right ? I'll try it now.

A better version (known to work, it ran just a few seconds ago in front of
my eyes ;-) :

let color_from_screen c =
  let o = point_color 0 0 in
    set_color c;
    plot 0 0;
    let s = point_color 0 0 in
      set_color o;
      plot 0 0;
      s;;

Just keep the place exactly in the same state you would like to find it...

Release 1.0 for monday.

Anyway, if you don't know the Langton ant, you should try it. It's
amazing. And the generalizes ones are not bad, too.

\bye

-- 

                   Nicolas FRANCOIS
            http://nicolas.francois.free.fr
 A TRUE Klingon programmer does NOT comment his code
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners