From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA03587; Wed, 19 Jun 2002 01:13:25 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA03602 for ; Wed, 19 Jun 2002 01:13:24 +0200 (MET DST) Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g5INDNj07195 for ; Wed, 19 Jun 2002 01:13:23 +0200 (MET DST) Received: from lfs (strasbourg-1-a7-62-147-11-219.dial.proxad.net [62.147.11.219]) by postfix2-1.free.fr (Postfix) with SMTP id 87D6E82 for ; Wed, 19 Jun 2002 01:13:22 +0200 (CEST) Date: Wed, 19 Jun 2002 01:21:35 +0200 From: Nicolas FRANCOIS (AKA El Bofo) To: caml-list@inria.fr Subject: Re: [Caml-list] Re: Problem with Graph module Message-Id: <20020619012135.7a26bd86.nicolas.francois@free.fr> In-Reply-To: <20020618190139.69122974.nicolas.francois@free.fr> References: <20020617031219.2dd51ec3.nicolas.francois@free.fr> <20020617.152309.424257368.Jun.Furuse@inria.fr> <20020617194701.62f989bf.nicolas.francois@free.fr> <20020618.114831.1025221351.Jun.Furuse@inria.fr> <20020618190139.69122974.nicolas.francois@free.fr> X-Mailer: Sylpheed version 0.7.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Le Tue, 18 Jun 2002 19:01:39 +0200 Nicolas FRANCOIS (AKA El Bofo) 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