pemsley / coot

Software for macromolecular model-building
http://www2.mrc-lmb.cam.ac.uk/personal/pemsley/coot/
GNU General Public License v3.0
121 stars 46 forks source link

set_background_colour() not working in no-graphics mode #19

Closed wojdyr closed 3 years ago

wojdyr commented 6 years ago

I'm using Coot in --no-graphics mode to generate screeshots (through Raster3D), as part of Dimple pipeline. Trying to address ccp4/dimple#5 I tried calling set_background_colour() in a script, but apparently it's a no-op in no-graphics mode.

So could you enable changing of the background without graphical interface? For example, by moving these lines in set_background_colour() in src/c-interface.cc:

   g.background_colour[0] = red; 
   g.background_colour[1] = green; 
   g.background_colour[2] = blue; 

outside of if (g.use_graphics_interface_flag) { ... }.

pemsley commented 3 years ago

OK, fixed now. Thanks.