From: timothy d. <mol...@ma...> - 2004-01-16 15:33:37
|
at 8.09a EDT on 2004 January 16 Friday PHILLIP W BARAK said: > [various parties in the discussions at various times said:] >=20 > > > using different codes for element colors isn't going to 'break' > > > existing scripts. > >=20 > > Here is what I was thinking ... someone who used the default colors > > but then had a 'color key' in HTML. >=20 > For the benefit of this discussion: the Virtual Museum of Minerals and > Molecules probably includes 25 or so different atomic elements (C, H, > N, O, S, and P, among them) and provides a color key in a 'element kay' > frame ...meaning that we are probably as interested in the issues of > any change of element colors on existing sites as anyone. >=20 > Rather than hard-code the element colors into the <FONT COLOR =3D"..> in > each of the 'element key' frames of each display for its unique > combination of elements, we chose back then (1998?) simply to use the > attribute ID=3D"(atomicsymbol)" in the html code for each element in the > key, and reference all the element key frames to a single cascading > style sheet that gives the desired properties, such as: #C { color: > #C8C8C8; text-align: center; font-weight: bold;} We have our desired > colors for all natural elements that may appear in a single element key > frame (and they currently follow the Chime/Rasmol standard). We could > change the appearance of the colors in the element frames throughout > the site by simply rewriting that single css file w/ new preferences > for a different color scheme. >=20 I organize my resources in a similar fashion, which is why the thought of tweaking a color scheme for html is not a big issue for me. OTOH if you ha= ve hundreds of font tags peppered throughout your docs, I can see headaches. > So changing to a new set of preferences is no problem for us. (Now, if > Jmol were to toggle _among_ color schemes, then I'm not quite sure how > the selection of proper stylesheet would keep up.) >=20 if one could call a javascript method from within a Jmol script, it could b= e used to update dynamic page elements like color scheme. I have already mentioned this feature to Miguel. > > But even in this case the colors won't match exactly because of the > > shading. >=20 > Have to 'average' the visual impact of highlight and shade to get a > single value, right? >=20 and specular, too - right? =20 :tim --=20 timothy driscoll molvisions - molecular graphics & visualization <http://www.molvisions.com/> usa:north carolina:wake forest |