From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Sep 17 2002 - 09:37:14 CDT

Dear Stephane,
  The color change commands found in the saved state file are
actually queried from VMD by the save_state.tcl script, using this
code:
    set cnum [colorinfo num]
    for {set c 0} {$c < $cnum} {incr c} {
        set rgb [colorinfo rgb $c]
        if {[string compare $rgb [lindex $def_rgb $c]]} {
            puts $fildes " color change rgb $c $rgb"
        }
    }

The code that reads them in uses doubles but converts them
later to floats, here's a snippet from cmd_color.C:
      double rr;
      if (Tcl_GetDouble(interp, argv[4], &rr) != TCL_OK) {
        Tcl_AppendResult(interp, " in color change", NULL);
        return TCL_ERROR;
      }
      r = (float) rr;

This should not be causing any problems for anyone.
Since you mention it at the end of your email, are you having
some sort of intermittent crashing of your VMD sessions??
Which version are you running?

Thanks,
  John Stone
  vmd_at_ks.uiuc.edu

On Tue, Sep 17, 2002 at 03:20:13PM +0200, Stéphane Teletchéa wrote:
> On my ahtlon/linux (mdk8.2) system, i did a save state comment, and this is a
> cut from the saved file :
> color change rgb 2 0.34999999404 0.34999999404 0.34999999404
> color change rgb 3 1.0 0.5 0.0
> color change rgb 4 1.0 1.0 0.0
> color change rgb 5 0.5 0.5 0.20000000298
> color change rgb 6 0.600000023842 0.600000023842 0.600000023842
>
>
> It is quite trivial (since in 0.600000023842 23842 is not really
> meaningfull), but may be the cause of random crashes ??
>
> What is your point on that (may be due to difference between 32/64 bit
> architectures or speed optimizations ?
> Stef
> --
> *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
> Teletchéa Stéphane - CNRS UMR 8601
> Lab. de chimie et biochimie pharmacologiques et toxicologiques
> 45 rue des Saints-Peres 75270 Paris cedex 06
> tel : (33) - 1 42 86 20 86 - fax : (33) - 1 42 86 83 87
> mél : steletch_at_biomedicale.univ-paris5.fr
> *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078