Atoms and bonds drawn on the canvas are shown in the CPK color scheme by default, but by using the colorScheme parameter, you can disable coloration.<script LANGUAGE="JavaScript1.1" SRC="../../marvin.js"></script> <script LANGUAGE="JavaScript1.1"> <!-- msketch_begin("../..", 460, 380); msketch_param("background", "#ffffff"); msketch_param("molbg", "#ffffff"); msketch_end(); //--> </script>
Note that we only set the molecule background. The white foreground was set automatically by the program.<script LANGUAGE="JavaScript1.1"> <!-- msketch_begin("../..", 460, 380); msketch_param("background", "#666699"); msketch_param("molbg", "#000000"); msketch_param("colorScheme", "mono"); msketch_end(); //--> </script>
You can change the look of the applet not just by changing colors but also by rearranging buttons.