Avogadr.io – Molecular Wallpaper Generator
avogadr.io
avogadr.io
- Some kind of feedback over whether the compound name is valid or not
- Validation on the SMILES input
- Whether it's working on building the picture or not
- Autocomplete for the compound name
- Different colors for each element
- Preset color pallettes
- List of "cool-looking" or "most often used" compounds
Would also suggest adding the ability to set the size of the rendered image. Especially for picking sizes for devices.
Also, if you want to make some pocket change from this, link it to cafepress and let me self-print molecules on a bunch of things (stickers!).
Caffeine: https://avogadr.io/?background=3C2923&foreground=E5B273&comp... Wintergreen: https://avogadr.io/?background=1E5454&foreground=D6DCC2&comp... Codeine: https://avogadr.io/?background=350D30&foreground=D0ACE2&comp... Acetone: https://avogadr.io/?background=A03129&foreground=FF9800&comp... THC: https://avogadr.io/?background=113617&foreground=A6BC74&comp... Oxytocin (large molecule): https://avogadr.io/?background=3a0000&foreground=ffc7c7&comp... Ethanol: https://avogadr.io/?background=4B98BC&foreground=D7E5FF&comp...
The problem here is naming compounds - a name like "THC" is not precise enough to distinguish between these isomers. A more exact name could be "(–)-trans-Δ⁹-tetrahydrocannabinol" (from wikipedia).
Does making a chemical drawing usually take that much time?
If it's C++, then emscripten might be a possible choice.
If it's a mixture, then that's a much harder problem...
https://github.com/cryos/avogadro/
Mostly C++, then the clojure wrappers in java? There do exist pure javascript molecule drawers, though.
This is a bit odd because all of those names are regular constructions that indicate the composition in formally defined ways.
Still fun though!
(I wanted to see how it would handle typos)
My methane is crazy. https://www.avogadr.io/?background=5f0000&foreground=ce3838&...
https://pubchem.ncbi.nlm.nih.gov/compound/297#section=Canoni...
https://www.avogadr.io/?background=5f0000&foreground=ce3838&...
Also, I found this: https://cactus.nci.nih.gov/chemical/structure which can convert a chemical name to SMILES notation.
The Wikipedia entry for SMILES has lots of links to software utilities at the end of the article: https://en.wikipedia.org/wiki/Simplified_molecular-input_lin...