Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wojdyr opened this issue Sep 7, 2018 · 1 comment
Closed

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

wojdyr opened this issue Sep 7, 2018 · 1 comment

Comments

@wojdyr
Copy link

wojdyr commented Sep 7, 2018

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
Copy link
Owner

pemsley commented Apr 6, 2021

OK, fixed now. Thanks.

@pemsley pemsley closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants