Hi Andreas,

That's a really good question, but I'm afraid that there's not good answer
for it: the new drawing code does not currently have an option to support
either black and white rendering or using custom colors for the elements.

I just created the github item for B&W rendering here:
https://github.com/rdkit/rdkit/issues/1510

It should be an easy one to get into the next release.

In the meantime, someone who is better with regular expressions than me can
probably suggest a pattern to replace the specified drawing colors in the
SVG with #000000 without changing the background color to black as well.
That's a hack, but possibly better than nothing.

-greg


On Tue, Jul 25, 2017 at 2:27 PM, Andreas Schulz <aschul...@web.de> wrote:

> Hi ,
> there was a disscussion about how to draw molecules in black and white in
> 2015....
> Today I search for a solution to create black & white SVG with something
> like
>
> drawer.DrawMolecule(mol, options=???)
>
> Are there any hints where I could find an example, please?
>
> Thanks
> Andreas
>
> PS: Sorry, first mail today was html ....
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to